aboutsummaryrefslogtreecommitdiff
path: root/gzwrite.c
diff options
context:
space:
mode:
authorMark Adler <zlib@madler.net>2017-10-12 20:03:51 -0700
committerMark Adler <zlib@madler.net>2017-10-12 20:03:51 -0700
commita5773513942b1c57d0eff51fcb2ebac72796ed95 (patch)
tree94c297475eb82b4cdf5fb2d15fe946a3d4e77dfc /gzwrite.c
parent723e928b84b0adac84cc11ec5c075a45e1a79903 (diff)
downloadzlib-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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gzwrite.c b/gzwrite.c
index 26e89b6..5238133 100644
--- a/gzwrite.c
+++ b/gzwrite.c
@@ -349,9 +349,9 @@ int ZEXPORT gzputc(file, c)
349} 349}
350 350
351/* -- see zlib.h -- */ 351/* -- see zlib.h -- */
352int ZEXPORT gzputs(file, str) 352int 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