Fix build: getopt() returns int so use an integer to get the value.

This commit is contained in:
Xin LI 2010-01-06 00:20:37 +00:00
parent e851fd040e
commit 64c50c6403
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201627

View File

@ -88,8 +88,8 @@ main(int argc, char **argv)
time_t tt;
struct tm GMT, tmd;
double days, today, tomorrow;
int cnt;
char *odate = NULL, *otime = NULL, ch;
int ch, cnt;
char *odate = NULL, *otime = NULL;
while ((ch = getopt(argc, argv, "d:t:")) != -1)
switch (ch) {