=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/Attic/cmds.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/systat/Attic/cmds.c 1995/10/18 08:46:10 1.1 --- src/usr.bin/systat/Attic/cmds.c 1996/05/22 11:35:30 1.2 *************** *** 1,4 **** ! /* $NetBSD: cmds.c,v 1.3 1995/08/31 22:20:18 jtc Exp $ */ /*- * Copyright (c) 1980, 1992, 1993 --- 1,4 ---- ! /* $NetBSD: cmds.c,v 1.4 1996/05/10 23:16:32 thorpej Exp $ */ /*- * Copyright (c) 1980, 1992, 1993 *************** *** 37,43 **** #if 0 static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/29/95"; #endif ! static char rcsid[] = "$NetBSD: cmds.c,v 1.3 1995/08/31 22:20:18 jtc Exp $"; #endif /* not lint */ #include --- 37,43 ---- #if 0 static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/29/95"; #endif ! static char rcsid[] = "$NetBSD: cmds.c,v 1.4 1996/05/10 23:16:32 thorpej Exp $"; #endif /* not lint */ #include *************** *** 110,116 **** } p = lookup(cmd); if (p == (struct cmdtab *)-1) { ! error("%s: Ambiguous command.", cmd); goto done; } if (p) { --- 110,118 ---- } p = lookup(cmd); if (p == (struct cmdtab *)-1) { ! /* if not a primary command, try a display specific one */ ! if (curcmd->c_cmd == 0 || !(*curcmd->c_cmd)(cmd, cp)) ! error("%s: Ambiguous command.", cmd); goto done; } if (p) { *************** *** 140,147 **** status(); goto done; } - if (curcmd->c_cmd == 0 || !(*curcmd->c_cmd)(cmd, cp)) - error("%s: Unknown command.", cmd); done: sigsetmask(omask); } --- 142,147 ----