diff options
author | Mark Adler <zlib@madler.net> | 2017-10-12 20:03:51 -0700 |
---|---|---|
committer | Mark Adler <zlib@madler.net> | 2017-10-12 20:03:51 -0700 |
commit | a5773513942b1c57d0eff51fcb2ebac72796ed95 (patch) | |
tree | 94c297475eb82b4cdf5fb2d15fe946a3d4e77dfc /gzwrite.c | |
parent | 723e928b84b0adac84cc11ec5c075a45e1a79903 (diff) | |
download | zlib-a5773513942b1c57d0eff51fcb2ebac72796ed95.tar.gz zlib-a5773513942b1c57d0eff51fcb2ebac72796ed95.tar.bz2 zlib-a5773513942b1c57d0eff51fcb2ebac72796ed95.zip |
Make the names in functions declarations identical to definitions.
Diffstat (limited to 'gzwrite.c')
-rw-r--r-- | gzwrite.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -349,9 +349,9 @@ int ZEXPORT gzputc(file, c) | |||
349 | } | 349 | } |
350 | 350 | ||
351 | /* -- see zlib.h -- */ | 351 | /* -- see zlib.h -- */ |
352 | int ZEXPORT gzputs(file, str) | 352 | int ZEXPORT gzputs(file, s) |
353 | gzFile file; | 353 | gzFile file; |
354 | const char *str; | 354 | const char *s; |
355 | { | 355 | { |
356 | z_size_t len, put; | 356 | z_size_t len, put; |
357 | gz_statep state; | 357 | gz_statep state; |
@@ -366,12 +366,12 @@ int ZEXPORT gzputs(file, str) | |||
366 | return -1; | 366 | return -1; |
367 | 367 | ||
368 | /* write string */ | 368 | /* write string */ |
369 | len = strlen(str); | 369 | len = strlen(s); |
370 | if ((int)len < 0 || (unsigned)len != len) { | 370 | if ((int)len < 0 || (unsigned)len != len) { |
371 | gz_error(state, Z_STREAM_ERROR, "string length does not fit in int"); | 371 | gz_error(state, Z_STREAM_ERROR, "string length does not fit in int"); |
372 | return -1; | 372 | return -1; |
373 | } | 373 | } |
374 | put = gz_write(state, str, len); | 374 | put = gz_write(state, s, len); |
375 | return put < len ? -1 : (int)len; | 375 | return put < len ? -1 : (int)len; |
376 | } | 376 | } |
377 | 377 | ||