# | Line 431 | Line 431 | int main(int argc, char **argv){ | |
---|---|---|
431 | WINDOW *window; | |
432 | ||
433 | extern int errno; | |
434 | – | char ch; |
434 | ||
435 | int delay=2; | |
436 | #ifdef ALLBSD | |
# | Line 445 | Line 444 | int main(int argc, char **argv){ | |
444 | } | |
445 | #endif | |
446 | ||
447 | < | while ((c = getopt(argc, argv, "vhd:")) != EOF){ |
447 | > | while ((c = getopt(argc, argv, "vhd:")) != -1){ |
448 | switch (c){ | |
449 | case 'd': | |
450 | delay = atoi(optarg); | |
# | Line 485 | Line 484 | int main(int argc, char **argv){ | |
484 | display_headings(); | |
485 | ||
486 | for(;;){ | |
487 | < | ch = getch(); |
487 | > | int ch = getch(); |
488 | if (ch == 'q'){ | |
489 | endwin(); | |
490 | return 0; |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |