Fix build: getopt() returns int so use an integer to get the value.
This commit is contained in:
parent
e851fd040e
commit
64c50c6403
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201627
@ -88,8 +88,8 @@ main(int argc, char **argv)
|
|||||||
time_t tt;
|
time_t tt;
|
||||||
struct tm GMT, tmd;
|
struct tm GMT, tmd;
|
||||||
double days, today, tomorrow;
|
double days, today, tomorrow;
|
||||||
int cnt;
|
int ch, cnt;
|
||||||
char *odate = NULL, *otime = NULL, ch;
|
char *odate = NULL, *otime = NULL;
|
||||||
|
|
||||||
while ((ch = getopt(argc, argv, "d:t:")) != -1)
|
while ((ch = getopt(argc, argv, "d:t:")) != -1)
|
||||||
switch (ch) {
|
switch (ch) {
|
||||||
|
Loading…
Reference in New Issue
Block a user