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

This commit is contained in:
delphij 2010-01-06 00:20:37 +00:00
parent a3ff55adf7
commit ac4932bfb5

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) {