diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-18 02:28:49 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-18 02:28:49 +0000 |
commit | a4245d8adcab467b1fd7e690c59a0f535f6e8ad9 (patch) | |
tree | 961a20055e4ea3e94724d98a6653ee0501ae6b0d /usr.bin/pr | |
parent | 9ed28d9ca0ae788ecd6282760a4334481536510f (diff) |
struct timezone is so 1980
Diffstat (limited to 'usr.bin/pr')
-rw-r--r-- | usr.bin/pr/pr.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/pr/pr.c b/usr.bin/pr/pr.c index 840c601dbc6..49cc573d3a1 100644 --- a/usr.bin/pr/pr.c +++ b/usr.bin/pr/pr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pr.c,v 1.30 2010/08/25 18:20:11 chl Exp $ */ +/* $OpenBSD: pr.c,v 1.31 2013/04/18 02:28:48 deraadt Exp $ */ /*- * Copyright (c) 1991 Keith Muller. @@ -1436,7 +1436,6 @@ nxtfile(int argc, char *argv[], char **fname, char *buf, int dt) { FILE *inf = NULL; struct timeval tv; - struct timezone tz; struct tm *timeptr = NULL; struct stat statbuf; time_t curtime; @@ -1457,7 +1456,7 @@ nxtfile(int argc, char *argv[], char **fname, char *buf, int dt) *fname = FNAME; if (nohead) return(inf); - if (gettimeofday(&tv, &tz) < 0) { + if (gettimeofday(&tv, NULL) < 0) { ++errcnt; ferrout("pr: cannot get time of day, %s\n", strerror(errno)); @@ -1481,7 +1480,7 @@ nxtfile(int argc, char *argv[], char **fname, char *buf, int dt) ++eoptind; if (nohead || (dt && twice)) return(inf); - if (gettimeofday(&tv, &tz) < 0) { + if (gettimeofday(&tv, NULL) < 0) { ++errcnt; ferrout("pr: cannot get time of day, %s\n", strerror(errno)); @@ -1512,7 +1511,7 @@ nxtfile(int argc, char *argv[], char **fname, char *buf, int dt) return(inf); if (dt) { - if (gettimeofday(&tv, &tz) < 0) { + if (gettimeofday(&tv, NULL) < 0) { ++errcnt; ferrout("pr: cannot get time of day, %s\n", strerror(errno)); |