@@ -162,9 +162,7 @@ local void make_crc_table()
162162}
163163
164164#ifdef MAKECRCH
165- local void write_table (out , table )
166- FILE * out ;
167- const z_crc_t FAR * table ;
165+ local void write_table (FILE * out , const z_crc_t FAR * table )
168166{
169167 int n ;
170168
@@ -199,10 +197,7 @@ const z_crc_t FAR * ZEXPORT get_crc_table()
199197#define DO8 DO1; DO1; DO1; DO1; DO1; DO1; DO1; DO1
200198
201199/* ========================================================================= */
202- unsigned long ZEXPORT crc32_z (crc , buf , len )
203- unsigned long crc ;
204- const unsigned char FAR * buf ;
205- z_size_t len ;
200+ unsigned long ZEXPORT crc32_z (unsigned long crc , const unsigned char FAR * buf , z_size_t len )
206201{
207202 if (buf == Z_NULL ) return 0UL ;
208203
@@ -234,10 +229,7 @@ unsigned long ZEXPORT crc32_z(crc, buf, len)
234229}
235230
236231/* ========================================================================= */
237- unsigned long ZEXPORT crc32 (crc , buf , len )
238- unsigned long crc ;
239- const unsigned char FAR * buf ;
240- uInt len ;
232+ unsigned long ZEXPORT crc32 (unsigned long crc , const unsigned char FAR * buf , uInt len )
241233{
242234 return crc32_z (crc , buf , len );
243235}
@@ -263,10 +255,7 @@ unsigned long ZEXPORT crc32(crc, buf, len)
263255#define DOLIT32 DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4; DOLIT4
264256
265257/* ========================================================================= */
266- local unsigned long crc32_little (crc , buf , len )
267- unsigned long crc ;
268- const unsigned char FAR * buf ;
269- z_size_t len ;
258+ local unsigned long crc32_little (unsigned long crc , const unsigned char FAR * buf , z_size_t len )
270259{
271260 register z_crc_t c ;
272261 register const z_crc_t FAR * buf4 ;
@@ -303,10 +292,7 @@ local unsigned long crc32_little(crc, buf, len)
303292#define DOBIG32 DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4; DOBIG4
304293
305294/* ========================================================================= */
306- local unsigned long crc32_big (crc , buf , len )
307- unsigned long crc ;
308- const unsigned char FAR * buf ;
309- z_size_t len ;
295+ local unsigned long crc32_big (unsigned long crc , const unsigned char FAR * buf , z_size_t len )
310296{
311297 register z_crc_t c ;
312298 register const z_crc_t FAR * buf4 ;
@@ -341,9 +327,7 @@ local unsigned long crc32_big(crc, buf, len)
341327#define GF2_DIM 32 /* dimension of GF(2) vectors (length of CRC) */
342328
343329/* ========================================================================= */
344- local unsigned long gf2_matrix_times (mat , vec )
345- unsigned long * mat ;
346- unsigned long vec ;
330+ local unsigned long gf2_matrix_times (unsigned long * mat , unsigned long vec )
347331{
348332 unsigned long sum ;
349333
@@ -358,9 +342,7 @@ local unsigned long gf2_matrix_times(mat, vec)
358342}
359343
360344/* ========================================================================= */
361- local void gf2_matrix_square (square , mat )
362- unsigned long * square ;
363- unsigned long * mat ;
345+ local void gf2_matrix_square (unsigned long * square , unsigned long * mat )
364346{
365347 int n ;
366348
@@ -369,10 +351,7 @@ local void gf2_matrix_square(square, mat)
369351}
370352
371353/* ========================================================================= */
372- local uLong crc32_combine_ (crc1 , crc2 , len2 )
373- uLong crc1 ;
374- uLong crc2 ;
375- z_off64_t len2 ;
354+ local uLong crc32_combine_ (uLong crc1 , uLong crc2 , z_off64_t len2 )
376355{
377356 int n ;
378357 unsigned long row ;
@@ -425,18 +404,12 @@ local uLong crc32_combine_(crc1, crc2, len2)
425404}
426405
427406/* ========================================================================= */
428- uLong ZEXPORT crc32_combine (crc1 , crc2 , len2 )
429- uLong crc1 ;
430- uLong crc2 ;
431- z_off_t len2 ;
407+ uLong ZEXPORT crc32_combine (uLong crc1 , uLong crc2 , z_off_t len2 )
432408{
433409 return crc32_combine_ (crc1 , crc2 , len2 );
434410}
435411
436- uLong ZEXPORT crc32_combine64 (crc1 , crc2 , len2 )
437- uLong crc1 ;
438- uLong crc2 ;
439- z_off64_t len2 ;
412+ uLong ZEXPORT crc32_combine64 (uLong crc1 , uLong crc2 , z_off64_t len2 )
440413{
441414 return crc32_combine_ (crc1 , crc2 , len2 );
442415}
0 commit comments