]> git.lizzy.rs Git - zlib.git/commit
Have gzputc return the character written instead of the argument.
authorMark Adler <madler@alumni.caltech.edu>
Sun, 29 Jan 2012 17:12:08 +0000 (09:12 -0800)
committerMark Adler <madler@alumni.caltech.edu>
Sun, 29 Jan 2012 17:47:29 +0000 (09:47 -0800)
commit22eb01184fd2d33b482a289d0bb08b2e2b0c5a18
tree3c897fff9827ec2bf097cd150e66dcca45854f4d
parent8fbd9f13400df299c8211b7b643bdbbe1ecabd77
Have gzputc return the character written instead of the argument.

When successful, gzputc would return the second argument.  If the
second argument were -1, gzputc would return -1 instead of the
character written, which was 255.  However the -1 would not be
distinguishable from an error.  Now gzputc returns 255 in that
case.
gzwrite.c