=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/top.c,v retrieving revision 1.18 retrieving revision 1.19 diff -c -r1.18 -r1.19 *** src/usr.bin/top/top.c 2002/07/15 17:20:36 1.18 --- src/usr.bin/top/top.c 2003/06/12 22:30:23 1.19 *************** *** 1,4 **** ! /* $OpenBSD: top.c,v 1.18 2002/07/15 17:20:36 deraadt Exp $ */ const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre"; --- 1,4 ---- ! /* $OpenBSD: top.c,v 1.19 2003/06/12 22:30:23 pvalchev Exp $ */ const char copyright[] = "Copyright (c) 1984 through 1996, William LeFebvre"; *************** *** 116,126 **** void (*d_process)() = i_process; ! int main(argc, argv) ! ! int argc; ! char *argv[]; ! { int i; int active_procs; --- 116,123 ---- void (*d_process)() = i_process; ! int ! main(int argc, char *argv[]) { int i; int active_procs; *************** *** 953,960 **** * screen will get redrawn. */ ! static void reset_display() ! { d_loadave = i_loadave; d_procstates = i_procstates; --- 950,957 ---- * screen will get redrawn. */ ! static void ! reset_display(void) { d_loadave = i_loadave; d_procstates = i_procstates; *************** *** 969,1014 **** * signal handlers */ ! void leave(unused) /* exit under normal conditions -- INT handler */ ! ! int unused; ! { leaveflag = 1; } ! void tstop(i) /* SIGTSTP handler */ ! ! int i; ! { tstopflag = 1; } #ifdef SIGWINCH ! void winch(i) /* SIGWINCH handler */ ! ! int i; ! { winchflag = 1; } #endif ! void quit(status) /* exit under duress */ ! ! int status; ! { end_screen(); exit(status); /*NOTREACHED*/ } ! void onalrm(unused) /* SIGALRM handler */ ! ! int unused; ! { /* this is only used in batch mode to break out of the pause() */ /* return; */ --- 966,1001 ---- * signal handlers */ ! void ! leave(int unused) /* exit under normal conditions -- INT handler */ { leaveflag = 1; } ! void ! tstop(int i) /* SIGTSTP handler */ { tstopflag = 1; } #ifdef SIGWINCH ! void ! winch(int i) /* SIGWINCH handler */ { winchflag = 1; } #endif ! void ! quit(int status) /* exit under duress */ { end_screen(); exit(status); /*NOTREACHED*/ } ! void ! onalrm(int unused) /* SIGALRM handler */ { /* this is only used in batch mode to break out of the pause() */ /* return; */