mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-27 11:20:58 +01:00
Fix build: getopt() returns int so use an integer to get the value.
This commit is contained in:
parent
a3ff55adf7
commit
ac4932bfb5
@ -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 New Issue
Block a user