| # | Line 427 | Line 427 | void usage(char *progname){ | |
|---|---|---|
| 427 | int main(int argc, char **argv){ | |
| 428 | ||
| 429 | extern char *optarg; | |
| 430 | – | extern int optind; |
| 430 | int c; | |
| 431 | ||
| 432 | time_t last_update = 0; | |
| # | Line 448 | Line 447 | int main(int argc, char **argv){ | |
| 447 | switch (c){ | |
| 448 | case 'd': | |
| 449 | delay = atoi(optarg); | |
| 450 | < | if (delay == 0){ |
| 450 | > | if (delay < 1){ |
| 451 | fprintf(stderr, "Time must be 1 second or greater\n"); | |
| 452 | exit(1); | |
| 453 | } | |
| – | Removed lines |
| + | Added lines |
| < | Changed lines |
| > | Changed lines |