summaryrefslogtreecommitdiff
path: root/test/time
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
parentdf80b74f4b2d282ae9b07e951a798936bb706a48 (diff)
fixup shadowed warnings
Diffstat (limited to 'test/time')
-rw-r--r--test/time/clocktest.c2
-rw-r--r--test/time/test_time.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/test/time/clocktest.c b/test/time/clocktest.c
index f2b3ea73a..a5b2c09e7 100644
--- a/test/time/clocktest.c
+++ b/test/time/clocktest.c
@@ -7,7 +7,7 @@
volatile int gotit = 0;
static void
-alarm_handler (int signal)
+alarm_handler (int signum)
{
gotit = 1;
}
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;