diff mbox series

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

Message ID 20201228204140.369042-1-xypron.glpk@gmx.de
State Accepted
Commit 986c841c8b41ba3dc8d8bc4ce3802779cf69bfc0
Delegated to: Tom Rini
Headers show
Series lib: zlib: our putc() takes only one argument | expand

Commit Message

Heinrich Schuchardt Dec. 28, 2020, 8:41 p.m. UTC
In contrast to the C99 standard [1] our putc() takes only one argument.

[1] ISO/IEC 9899:1999

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 lib/zlib/deflate.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--
2.29.2

Comments

Tom Rini Jan. 18, 2021, 1:02 p.m. UTC | #1
On Mon, Dec 28, 2020 at 09:41:40PM +0100, Heinrich Schuchardt wrote:

> In contrast to the C99 standard [1] our putc() takes only one argument.
> 
> [1] ISO/IEC 9899:1999
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/lib/zlib/deflate.c b/lib/zlib/deflate.c
index 1fe58d5da6..63473359e4 100644
--- a/lib/zlib/deflate.c
+++ b/lib/zlib/deflate.c
@@ -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