[BACK]Return to top.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / top

Diff for /src/usr.bin/top/top.c between version 1.18 and 1.19

version 1.18, 2002/07/15 17:20:36 version 1.19, 2003/06/12 22:30:23
Line 116 
Line 116 
 void (*d_process)() = i_process;  void (*d_process)() = i_process;
   
   
 int main(argc, argv)  int
   main(int argc, char *argv[])
 int  argc;  
 char *argv[];  
   
 {  {
     int i;      int i;
     int active_procs;      int active_procs;
Line 953 
Line 950 
  *      screen will get redrawn.   *      screen will get redrawn.
  */   */
   
 static void reset_display()  static void
   reset_display(void)
 {  {
     d_loadave    = i_loadave;      d_loadave    = i_loadave;
     d_procstates = i_procstates;      d_procstates = i_procstates;
Line 969 
Line 966 
  *  signal handlers   *  signal handlers
  */   */
   
 void leave(unused)      /* exit under normal conditions -- INT handler */  void
   leave(int unused)       /* exit under normal conditions -- INT handler */
 int unused;  
   
 {  {
     leaveflag = 1;      leaveflag = 1;
 }  }
   
 void tstop(i)   /* SIGTSTP handler */  void
   tstop(int i)    /* SIGTSTP handler */
 int i;  
   
 {  {
     tstopflag = 1;      tstopflag = 1;
 }  }
   
 #ifdef SIGWINCH  #ifdef SIGWINCH
 void winch(i)           /* SIGWINCH handler */  void
   winch(int i)            /* SIGWINCH handler */
 int i;  
   
 {  {
     winchflag = 1;      winchflag = 1;
 }  }
 #endif  #endif
   
 void quit(status)               /* exit under duress */  void
   quit(int status)                /* exit under duress */
 int status;  
   
 {  {
     end_screen();      end_screen();
     exit(status);      exit(status);
     /*NOTREACHED*/      /*NOTREACHED*/
 }  }
   
 void onalrm(unused)     /* SIGALRM handler */  void
   onalrm(int unused)      /* SIGALRM handler */
 int unused;  
   
 {  {
     /* this is only used in batch mode to break out of the pause() */      /* this is only used in batch mode to break out of the pause() */
     /* return; */      /* return; */

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19