Skip to contentSkip to conversation

lib: zlib: our putc() takes only one argument

PATCH New Heinrich Schuchardt 2 participants 2 messages Dec 28, 2020 – Jan 18, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: zlib: our putc() takes only one argument

In contrast to the C99 standard [1] our putc() takes only one argument.

[1] ISO/IEC 9899:1999

---
 lib/zlib/deflate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/zlib/deflate.c +1 -1
index 1fe58d5da6..63473359e4 100644
@@ -1284,7 +1284,7 @@ local void check_match(s, start, match, length)
     }
     if (z_verbose > 1) {
         fprintf(stderr,"\\[%d,%d]", start-match, length);
-        do { putc(s->window[start++], stderr); } while (--length != 0);
+	do { putc(s->window[start++]); } while (--length != 0);
     }
 }
 #else

--
2.29.2

#1 lore raw

PATCH 1/1 lib: zlib: our putc() takes only one argument

Quoted 5 lines · Heinrich Schuchardt

In contrast to the C99 standard [1] our putc() takes only one argument.

[1] ISO/IEC 9899:1999

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20210118/a3a93d7f/attachment.sig>