=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/commands.c,v retrieving revision 1.2 retrieving revision 1.3 diff -c -r1.2 -r1.3 *** src/usr.bin/top/commands.c 1997/08/22 07:16:26 1.2 --- src/usr.bin/top/commands.c 2001/11/19 19:02:17 1.3 *************** *** 1,4 **** ! /* $OpenBSD: commands.c,v 1.2 1997/08/22 07:16:26 downsj Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: commands.c,v 1.3 2001/11/19 19:02:17 mpech Exp $ */ /* * Top users/processes display for Unix *************** *** 97,103 **** static char *next_field(str) ! register char *str; { if ((str = strchr(str, ' ')) == NULL) --- 97,103 ---- static char *next_field(str) ! char *str; { if ((str = strchr(str, ' ')) == NULL) *************** *** 118,125 **** int *intp; { ! register int val = 0; ! register char ch; /* if there is nothing left of the string, flag it as an error */ /* This fix is dedicated to Greg Earle */ --- 118,125 ---- int *intp; { ! int val = 0; ! char ch; /* if there is nothing left of the string, flag it as an error */ /* This fix is dedicated to Greg Earle */ *************** *** 194,203 **** static char *err_string() { ! register struct errs *errp; ! register int cnt = 0; ! register int first = Yes; ! register int currerr = -1; int stringlen; /* characters still available in "string" */ static char string[STRMAX]; --- 194,203 ---- static char *err_string() { ! struct errs *errp; ! int cnt = 0; ! int first = Yes; ! int currerr = -1; int stringlen; /* characters still available in "string" */ static char string[STRMAX]; *************** *** 258,265 **** int err; { ! register char *msg; ! register int msglen; msg = err == 0 ? "Not a number" : strerror(err); msglen = strlen(msg) + 2; --- 258,265 ---- int err; { ! char *msg; ! int msglen; msg = err == 0 ? "Not a number" : strerror(err); msglen = strlen(msg) + 2; *************** *** 286,292 **** int first; { ! register int arglen; arglen = strlen(arg); if (!first) --- 286,292 ---- int first; { ! int arglen; arglen = strlen(arg); if (!first) *************** *** 315,323 **** const void *e1, *e2; { ! register const struct errs *p1 = (struct errs *)e1; ! register const struct errs *p2 = (struct errs *)e2; ! register int result; if ((result = p1->errno - p2->errno) == 0) { --- 315,323 ---- const void *e1, *e2; { ! const struct errs *p1 = (struct errs *)e1; ! const struct errs *p2 = (struct errs *)e2; ! int result; if ((result = p1->errno - p2->errno) == 0) { *************** *** 343,350 **** void show_errors() { ! register int cnt = 0; ! register struct errs *errp = errs; printf("%d error%s:\n\n", errcnt, errcnt == 1 ? "" : "s"); while (cnt++ < errcnt) --- 343,350 ---- void show_errors() { ! int cnt = 0; ! struct errs *errp = errs; printf("%d error%s:\n\n", errcnt, errcnt == 1 ? "" : "s"); while (cnt++ < errcnt) *************** *** 365,371 **** char *str; { ! register char *nptr; int signum = SIGTERM; /* default */ int procnum; struct sigdesc *sigp; --- 365,371 ---- char *str; { ! char *nptr; int signum = SIGTERM; /* default */ int procnum; struct sigdesc *sigp; *************** *** 455,461 **** char *str; { ! register char negate; int prio; int procnum; int uid; --- 455,461 ---- char *str; { ! char negate; int prio; int procnum; int uid;