summaryrefslogtreecommitdiff
path: root/usr.bin/systat/cmds.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-18 00:46:49 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-06-18 00:46:49 +0000
commit684bef51761ffbbdd26883705dfbde949da6d1c4 (patch)
tree076dd85f70b1ec3b241d55547144c8439a265172 /usr.bin/systat/cmds.c
parentd39bc90d27eef3318f55538824f355c44d0c247e (diff)
ANSI
Diffstat (limited to 'usr.bin/systat/cmds.c')
-rw-r--r--usr.bin/systat/cmds.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/usr.bin/systat/cmds.c b/usr.bin/systat/cmds.c
index dd79bd471c8..9f3934b0215 100644
--- a/usr.bin/systat/cmds.c
+++ b/usr.bin/systat/cmds.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmds.c,v 1.10 2001/12/07 09:18:08 deraadt Exp $ */
+/* $OpenBSD: cmds.c,v 1.11 2002/06/18 00:46:47 deraadt Exp $ */
/* $NetBSD: cmds.c,v 1.4 1996/05/10 23:16:32 thorpej Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.2 (Berkeley) 4/29/95";
#endif
-static char rcsid[] = "$OpenBSD: cmds.c,v 1.10 2001/12/07 09:18:08 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cmds.c,v 1.11 2002/06/18 00:46:47 deraadt Exp $";
#endif /* not lint */
#include <stdlib.h>
@@ -50,8 +50,7 @@ static char rcsid[] = "$OpenBSD: cmds.c,v 1.10 2001/12/07 09:18:08 deraadt Exp $
#include "extern.h"
void
-command(cmd)
- char *cmd;
+command(char *cmd)
{
struct cmdtab *p;
char *cp;
@@ -151,8 +150,7 @@ done:
}
struct cmdtab *
-lookup(name)
- char *name;
+lookup(char *name)
{
char *p, *q;
struct cmdtab *c, *found;
@@ -180,7 +178,7 @@ lookup(name)
}
void
-status()
+status(void)
{
error("Showing %s, refresh every %d seconds.",
@@ -188,8 +186,7 @@ status()
}
int
-prefix(s1, s2)
- char *s1, *s2;
+prefix(char *s1, char *s2)
{
while (*s1 == *s2) {