Skip to content

Commit

Permalink
lib: Remove duplicate newlines
Browse files Browse the repository at this point in the history
Drop all duplicate newlines. No functional change.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
  • Loading branch information
Marek Vasut authored and trini committed Jul 15, 2024
1 parent dc5e205 commit 2f8c004
Show file tree
Hide file tree
Showing 58 changed files with 0 additions and 336 deletions.
4 changes: 0 additions & 4 deletions lib/blake2/blake2b.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ static const uint8_t blake2b_sigma[12][16] =
{ 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }
};


static void blake2b_set_lastnode( blake2b_state *S )
{
S->f[1] = (uint64_t)-1;
Expand Down Expand Up @@ -100,8 +99,6 @@ int blake2b_init_param( blake2b_state *S, const blake2b_param *P )
return 0;
}



int blake2b_init( blake2b_state *S, size_t outlen )
{
blake2b_param P[1];
Expand All @@ -123,7 +120,6 @@ int blake2b_init( blake2b_state *S, size_t outlen )
return blake2b_init_param( S, P );
}


int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen )
{
blake2b_param P[1];
Expand Down
41 changes: 0 additions & 41 deletions lib/bzip2/bzlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
/*--- Compression stuff ---*/
/*---------------------------------------------------*/


/*---------------------------------------------------*/
#ifndef BZ_NO_STDIO
void BZ2_bz__AssertH__fail ( int errcode )
Expand Down Expand Up @@ -137,7 +136,6 @@ void BZ2_bz__AssertH__fail ( int errcode )
}
#endif


/*---------------------------------------------------*/
static
int bz_config_ok ( void )
Expand All @@ -148,7 +146,6 @@ int bz_config_ok ( void )
return 1;
}


/*---------------------------------------------------*/
static
void* default_bzalloc ( void* opaque, Int32 items, Int32 size )
Expand Down Expand Up @@ -177,7 +174,6 @@ void prepare_new_block ( EState* s )
s->blockNo++;
}


/*---------------------------------------------------*/
static
void init_RL ( EState* s )
Expand All @@ -186,7 +182,6 @@ void init_RL ( EState* s )
s->state_in_len = 0;
}


static
Bool isempty_RL ( EState* s )
{
Expand Down Expand Up @@ -261,7 +256,6 @@ int BZ_API(BZ2_bzCompressInit)
return BZ_OK;
}


/*---------------------------------------------------*/
static
void add_pair_to_block ( EState* s )
Expand Down Expand Up @@ -297,7 +291,6 @@ void add_pair_to_block ( EState* s )
}
}


/*---------------------------------------------------*/
static
void flush_RL ( EState* s )
Expand All @@ -306,7 +299,6 @@ void flush_RL ( EState* s )
init_RL ( s );
}


/*---------------------------------------------------*/
#define ADD_CHAR_TO_BLOCK(zs,zchh0) \
{ \
Expand Down Expand Up @@ -334,7 +326,6 @@ void flush_RL ( EState* s )
} \
}


/*---------------------------------------------------*/
static
Bool copy_input_until_stop ( EState* s )
Expand Down Expand Up @@ -379,7 +370,6 @@ Bool copy_input_until_stop ( EState* s )
return progress_in;
}


/*---------------------------------------------------*/
static
Bool copy_output_until_stop ( EState* s )
Expand All @@ -406,7 +396,6 @@ Bool copy_output_until_stop ( EState* s )
return progress_out;
}


/*---------------------------------------------------*/
static
Bool handle_compress ( bz_stream* strm )
Expand Down Expand Up @@ -453,7 +442,6 @@ Bool handle_compress ( bz_stream* strm )
return progress_in || progress_out;
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzCompress) ( bz_stream *strm, int action )
{
Expand Down Expand Up @@ -514,7 +502,6 @@ int BZ_API(BZ2_bzCompress) ( bz_stream *strm, int action )
return BZ_OK; /*--not reached--*/
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzCompressEnd) ( bz_stream *strm )
{
Expand Down Expand Up @@ -578,7 +565,6 @@ int BZ_API(BZ2_bzDecompressInit)
return BZ_OK;
}


/*---------------------------------------------------*/
static
void unRLE_obuf_to_output_FAST ( DState* s )
Expand All @@ -604,7 +590,6 @@ void unRLE_obuf_to_output_FAST ( DState* s )
/* can a new run be started? */
if (s->nblock_used == s->save_nblock+1) return;


s->state_out_len = 1;
s->state_out_ch = s->k0;
BZ_GET_FAST(k1); BZ_RAND_UPD_MASK;
Expand Down Expand Up @@ -720,7 +705,6 @@ void unRLE_obuf_to_output_FAST ( DState* s )
}
}


/*---------------------------------------------------*/
__inline__ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
{
Expand All @@ -735,7 +719,6 @@ __inline__ Int32 BZ2_indexIntoF ( Int32 indx, Int32 *cftab )
return nb;
}


/*---------------------------------------------------*/
static
void unRLE_obuf_to_output_SMALL ( DState* s )
Expand All @@ -761,7 +744,6 @@ void unRLE_obuf_to_output_SMALL ( DState* s )
/* can a new run be started? */
if (s->nblock_used == s->save_nblock+1) return;


s->state_out_len = 1;
s->state_out_ch = s->k0;
BZ_GET_SMALL(k1); BZ_RAND_UPD_MASK;
Expand Down Expand Up @@ -831,7 +813,6 @@ void unRLE_obuf_to_output_SMALL ( DState* s )
}
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
{
Expand Down Expand Up @@ -886,7 +867,6 @@ int BZ_API(BZ2_bzDecompress) ( bz_stream *strm )
return 0; /*NOTREACHED*/
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzDecompressEnd) ( bz_stream *strm )
{
Expand All @@ -906,7 +886,6 @@ int BZ_API(BZ2_bzDecompressEnd) ( bz_stream *strm )
return BZ_OK;
}


#ifndef BZ_NO_STDIO
/*---------------------------------------------------*/
/*--- File I/O stuff ---*/
Expand All @@ -930,7 +909,6 @@ typedef
}
bzFile;


/*---------------------------------------------*/
static Bool myfeof ( FILE* f )
{
Expand All @@ -940,7 +918,6 @@ static Bool myfeof ( FILE* f )
return False;
}


/*---------------------------------------------------*/
BZFILE* BZ_API(BZ2_bzWriteOpen)
( int* bzerror,
Expand Down Expand Up @@ -987,7 +964,6 @@ BZFILE* BZ_API(BZ2_bzWriteOpen)
return bzf;
}


/*---------------------------------------------------*/
void BZ_API(BZ2_bzWrite)
( int* bzerror,
Expand Down Expand Up @@ -1032,7 +1008,6 @@ void BZ_API(BZ2_bzWrite)
}
}


/*---------------------------------------------------*/
void BZ_API(BZ2_bzWriteClose)
( int* bzerror,
Expand All @@ -1045,7 +1020,6 @@ void BZ_API(BZ2_bzWriteClose)
nbytes_in, NULL, nbytes_out, NULL );
}


void BZ_API(BZ2_bzWriteClose64)
( int* bzerror,
BZFILE* b,
Expand Down Expand Up @@ -1110,7 +1084,6 @@ void BZ_API(BZ2_bzWriteClose64)
free ( bzf );
}


/*---------------------------------------------------*/
BZFILE* BZ_API(BZ2_bzReadOpen)
( int* bzerror,
Expand Down Expand Up @@ -1166,7 +1139,6 @@ BZFILE* BZ_API(BZ2_bzReadOpen)
return bzf;
}


/*---------------------------------------------------*/
void BZ_API(BZ2_bzReadClose) ( int *bzerror, BZFILE *b )
{
Expand All @@ -1184,7 +1156,6 @@ void BZ_API(BZ2_bzReadClose) ( int *bzerror, BZFILE *b )
free ( bzf );
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzRead)
( int* bzerror,
Expand Down Expand Up @@ -1244,7 +1215,6 @@ int BZ_API(BZ2_bzRead)
return 0; /*not reached*/
}


/*---------------------------------------------------*/
void BZ_API(BZ2_bzReadGetUnused)
( int* bzerror,
Expand All @@ -1266,7 +1236,6 @@ void BZ_API(BZ2_bzReadGetUnused)
}
#endif


/*---------------------------------------------------*/
/*--- Misc convenience stuff ---*/
/*---------------------------------------------------*/
Expand Down Expand Up @@ -1372,7 +1341,6 @@ int BZ_API(BZ2_bzBuffToBuffDecompress)
return ret;
}


/*---------------------------------------------------*/
/*--
Code contributed by Yoshioka Tsuneo
Expand All @@ -1394,7 +1362,6 @@ const char * BZ_API(BZ2_bzlibVersion)(void)
return BZ_VERSION;
}


#ifndef BZ_NO_STDIO
/*---------------------------------------------------*/

Expand Down Expand Up @@ -1476,7 +1443,6 @@ BZFILE * bzopen_or_bzdopen
return bzfp;
}


/*---------------------------------------------------*/
/*--
open file for read or write.
Expand All @@ -1490,7 +1456,6 @@ BZFILE * BZ_API(BZ2_bzopen)
return bzopen_or_bzdopen(path,-1,mode,/*bzopen*/0);
}


/*---------------------------------------------------*/
BZFILE * BZ_API(BZ2_bzdopen)
( int fd,
Expand All @@ -1499,7 +1464,6 @@ BZFILE * BZ_API(BZ2_bzdopen)
return bzopen_or_bzdopen(NULL,fd,mode,/*bzdopen*/1);
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzread) (BZFILE* b, void* buf, int len )
{
Expand All @@ -1513,7 +1477,6 @@ int BZ_API(BZ2_bzread) (BZFILE* b, void* buf, int len )
}
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzwrite) (BZFILE* b, void* buf, int len )
{
Expand All @@ -1527,15 +1490,13 @@ int BZ_API(BZ2_bzwrite) (BZFILE* b, void* buf, int len )
}
}


/*---------------------------------------------------*/
int BZ_API(BZ2_bzflush) (BZFILE *b)
{
/* do nothing now... */
return 0;
}


/*---------------------------------------------------*/
void BZ_API(BZ2_bzclose) (BZFILE* b)
{
Expand All @@ -1556,7 +1517,6 @@ void BZ_API(BZ2_bzclose) (BZFILE* b)
}
}


/*---------------------------------------------------*/
/*--
return last error code
Expand All @@ -1580,7 +1540,6 @@ static char *bzerrorstrings[] = {
,"???" /* for future */
};


const char * BZ_API(BZ2_bzerror) (BZFILE *b, int *errnum)
{
int err = ((bzFile *)b)->lastErr;
Expand Down
Loading

0 comments on commit 2f8c004

Please sign in to comment.