mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix build: getopt() returns int so use an integer to get the value.
This commit is contained in:
parent
e851fd040e
commit
64c50c6403
1 changed files with 2 additions and 2 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue