summaryrefslogtreecommitdiff
path: root/tprintf.c
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2013-05-21 14:23:38 +0200
committerTobias Klauser <tklauser@distanz.ch>2013-05-21 14:47:57 +0200
commit96c7189548e13f0bbcdbf43811a5df1465c4e6d3 (patch)
tree8798ae952204912ca168f362a8293fa3afe52b39 /tprintf.c
parent160bb3a3a1fad035e0c483f47b06c525189550e0 (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.c4
1 files 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;