summaryrefslogtreecommitdiff
path: root/test/time/test_time.c
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-29 03:18:59 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-29 03:18:59 +0000
commit9a7cfea9e5f6a8289e802dc6d39be521760bc525 (patch)
tree045af3bf51bab4da2b715f462452afbaebb6de13 /test/time/test_time.c
parentdf80b74f4b2d282ae9b07e951a798936bb706a48 (diff)
fixup shadowed warnings
Diffstat (limited to 'test/time/test_time.c')
-rw-r--r--test/time/test_time.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/time/test_time.c b/test/time/test_time.c
index 20216ed9d..2ce819a3f 100644
--- a/test/time/test_time.c
+++ b/test/time/test_time.c
@@ -37,15 +37,15 @@ main (int argc, char **argv)
char buf[BUFSIZ];
if (argc > 0)
{
- static char buf[BUFSIZ];
- sprintf(buf, "TZ=%s", *argv);
- if (putenv(buf))
+ static char tzenvbuf[BUFSIZ];
+ sprintf(tzenvbuf, "TZ=%s", *argv);
+ if (putenv(tzenvbuf))
{
puts("putenv failed.");
lose = 1;
}
else
- puts (buf);
+ puts (tzenvbuf);
}
tzset();
tbuf.tm_year = 72;