=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/pigs.c,v retrieving revision 1.13 retrieving revision 1.14 diff -c -r1.13 -r1.14 *** src/usr.bin/systat/pigs.c 2002/02/16 21:27:54 1.13 --- src/usr.bin/systat/pigs.c 2002/06/18 00:46:48 1.14 *************** *** 1,4 **** ! /* $OpenBSD: pigs.c,v 1.13 2002/02/16 21:27:54 millert Exp $ */ /* $NetBSD: pigs.c,v 1.3 1995/04/29 05:54:50 cgd Exp $ */ /*- --- 1,4 ---- ! /* $OpenBSD: pigs.c,v 1.14 2002/06/18 00:46:48 deraadt Exp $ */ /* $NetBSD: pigs.c,v 1.3 1995/04/29 05:54:50 cgd Exp $ */ /*- *************** *** 38,44 **** #if 0 static char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93"; #endif ! static char rcsid[] = "$OpenBSD: pigs.c,v 1.13 2002/02/16 21:27:54 millert Exp $"; #endif /* not lint */ /* --- 38,44 ---- #if 0 static char sccsid[] = "@(#)pigs.c 8.2 (Berkeley) 9/23/93"; #endif ! static char rcsid[] = "$OpenBSD: pigs.c,v 1.14 2002/06/18 00:46:48 deraadt Exp $"; #endif /* not lint */ /* *************** *** 75,88 **** static double lccpu; WINDOW * ! openpigs() { return (subwin(stdscr, LINES-5-1, 0, 5, 0)); } void ! closepigs(w) ! WINDOW *w; { if (w == NULL) return; --- 75,87 ---- static double lccpu; WINDOW * ! openpigs(void) { return (subwin(stdscr, LINES-5-1, 0, 5, 0)); } void ! closepigs(WINDOW *w) { if (w == NULL) return; *************** *** 93,99 **** void ! showpigs() { int i, j, y, k; struct eproc *ep; --- 92,98 ---- void ! showpigs(void) { int i, j, y, k; struct eproc *ep; *************** *** 111,117 **** } if (total < 1.0) ! total = 1.0; factor = 50.0/total; qsort(pt, nproc + 1, sizeof (struct p_times), compar); --- 110,116 ---- } if (total < 1.0) ! total = 1.0; factor = 50.0/total; qsort(pt, nproc + 1, sizeof (struct p_times), compar); *************** *** 143,149 **** struct loadavg sysload; int ! initpigs() { static int sysload_mib[] = {CTL_VM, VM_LOADAVG}; static int cp_time_mib[] = { CTL_KERN, KERN_CPTIME }; --- 142,148 ---- struct loadavg sysload; int ! initpigs(void) { static int sysload_mib[] = {CTL_VM, VM_LOADAVG}; static int cp_time_mib[] = { CTL_KERN, KERN_CPTIME }; *************** *** 166,172 **** } void ! fetchpigs() { static int cp_time_mib[] = { CTL_KERN, KERN_CPTIME }; static int lastnproc = 0; --- 165,171 ---- } void ! fetchpigs(void) { static int cp_time_mib[] = { CTL_KERN, KERN_CPTIME }; static int lastnproc = 0; *************** *** 226,232 **** } void ! labelpigs() { wmove(wnd, 0, 0); wclrtoeol(wnd); --- 225,231 ---- } void ! labelpigs(void) { wmove(wnd, 0, 0); wclrtoeol(wnd); *************** *** 235,243 **** } int ! compar(a, b) ! const void *a, *b; { return (((struct p_times *) a)->pt_pctcpu > ! ((struct p_times *) b)->pt_pctcpu)? -1: 1; } --- 234,241 ---- } int ! compar(const void *a, const void *b) { return (((struct p_times *) a)->pt_pctcpu > ! ((struct p_times *) b)->pt_pctcpu)? -1: 1; }