ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/saidar/saidar.c
(Generate patch)

Comparing projects/libstatgrab/src/saidar/saidar.c (file contents):
Revision 1.14 by ats, Fri Nov 7 18:25:55 2003 UTC vs.
Revision 1.16 by ats, Fri Nov 7 18:28:05 2003 UTC

# 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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines