=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/top/commands.c,v retrieving revision 1.26 retrieving revision 1.27 diff -c -r1.26 -r1.27 *** src/usr.bin/top/commands.c 2007/02/14 08:29:28 1.26 --- src/usr.bin/top/commands.c 2007/02/23 13:31:45 1.27 *************** *** 1,4 **** ! /* $OpenBSD: commands.c,v 1.26 2007/02/14 08:29:28 jmc Exp $ */ /* * Top users/processes display for Unix --- 1,4 ---- ! /* $OpenBSD: commands.c,v 1.27 2007/02/23 13:31:45 millert Exp $ */ /* * Top users/processes display for Unix *************** *** 48,54 **** #include "top.h" - #include "sigdesc.h" /* generated automatically */ #include "boolean.h" #include "utils.h" #include "machine.h" --- 48,53 ---- *************** *** 314,320 **** kill_procs(char *str) { int signum = SIGTERM, procnum; - struct sigdesc *sigp; uid_t uid, puid; char *nptr; --- 313,318 ---- *************** *** 339,353 **** return (" invalid signal number"); } else { /* translate the name into a number */ ! for (sigp = sigdesc; sigp->name != NULL; sigp++) { ! if (strcmp(sigp->name, str + 1) == 0) { ! signum = sigp->number; break; - } } /* was it ever found */ ! if (sigp->name == NULL) return (" bad signal name"); } /* put the new pointer in place */ --- 337,349 ---- return (" invalid signal number"); } else { /* translate the name into a number */ ! for (signum = 0; signum < NSIG; signum++) { ! if (strcasecmp(sys_signame[signum], str + 1) == 0) break; } /* was it ever found */ ! if (signum == NSIG) return (" bad signal name"); } /* put the new pointer in place */