=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pr/pr.c,v retrieving revision 1.30 retrieving revision 1.31 diff -u -r1.30 -r1.31 --- src/usr.bin/pr/pr.c 2010/08/25 18:20:11 1.30 +++ src/usr.bin/pr/pr.c 2013/04/18 02:28:48 1.31 @@ -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 @@ { FILE *inf = NULL; struct timeval tv; - struct timezone tz; struct tm *timeptr = NULL; struct stat statbuf; time_t curtime; @@ -1457,7 +1456,7 @@ *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 @@ ++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 @@ 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));