From 96c7189548e13f0bbcdbf43811a5df1465c4e6d3 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 21 May 2013 14:23:38 +0200 Subject: tprintf: Rename parameter to avoid shadowing global declaration The tprintf module already uses a static variable named 'buffer', thus rename the parameter to avoid a name clash. Found by compiling with -Wshadow. Signed-off-by: Tobias Klauser --- tprintf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tprintf.c b/tprintf.c index 46e9574..b57d706 100644 --- a/tprintf.c +++ b/tprintf.c @@ -52,9 +52,9 @@ static inline void __tprintf_flush_newline(void) fputc(' ', stdout); } -static inline int __tprintf_flush_skip(char *buffer, int i, size_t max) +static inline int __tprintf_flush_skip(char *buf, int i, size_t max) { - int val = buffer[i]; + int val = buf[i]; if (val == ' ' || val == ',') return 1; -- cgit v1.2.3-54-g00ecf