diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2013-05-21 14:23:38 +0200 |
---|---|---|
committer | Tobias Klauser <tklauser@distanz.ch> | 2013-05-21 14:47:57 +0200 |
commit | 96c7189548e13f0bbcdbf43811a5df1465c4e6d3 (patch) | |
tree | 8798ae952204912ca168f362a8293fa3afe52b39 /tprintf.c | |
parent | 160bb3a3a1fad035e0c483f47b06c525189550e0 (diff) |
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 <tklauser@distanz.ch>
Diffstat (limited to 'tprintf.c')
-rw-r--r-- | tprintf.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |