Remove assumption that time_t is an int

MFC after:	1 day
This commit is contained in:
Matthew Dillon 2001-10-28 02:28:04 +00:00
parent 6e97e2e10f
commit cd9c425794
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85615

View File

@ -83,6 +83,7 @@ main(argc, argv)
int jflag, nflag;
char *format, buf[1024];
char *endptr, *fmt;
char *tmp;
int set_timezone;
struct vary *v;
const struct vary *badv;
@ -114,7 +115,8 @@ main(argc, argv)
break;
case 'r': /* user specified seconds */
rflag = 1;
if (sscanf(optarg,"%li",&tval) != 1)
tval = strtoq(optarg, &tmp, 0);
if (*tmp != 0)
usage();
break;
case 't': /* minutes west of UTC */