diff options
Diffstat (limited to 'test/time')
-rw-r--r-- | test/time/clocktest.c | 2 | ||||
-rw-r--r-- | test/time/test_time.c | 8 |
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; |