summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2002-12-11 16:58:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2002-12-11 16:58:52 +0000
commit213b266d2612be39f42620a2c88dc0e6ad164b1c (patch)
treea48374499d6db57b22c52069087937d93aa07eea /sbin
parent61a88ff5bf5e11ac7d93c5be481dd4307df4bd16 (diff)
ansi
Diffstat (limited to 'sbin')
-rw-r--r--sbin/modunload/modunload.c10
-rw-r--r--sbin/wsconsctl/wsconsctl.c12
2 files changed, 8 insertions, 14 deletions
diff --git a/sbin/modunload/modunload.c b/sbin/modunload/modunload.c
index a9e65a7c888..32d533114dc 100644
--- a/sbin/modunload/modunload.c
+++ b/sbin/modunload/modunload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modunload.c,v 1.10 2002/01/09 22:22:56 ericj Exp $ */
+/* $OpenBSD: modunload.c,v 1.11 2002/12/11 16:58:39 deraadt Exp $ */
/* $NetBSD: modunload.c,v 1.9 1995/05/28 05:23:05 jtc Exp $ */
/*
@@ -51,7 +51,7 @@
static int devfd;
static void
-usage()
+usage(void)
{
extern char *__progname;
@@ -61,15 +61,13 @@ usage()
}
void
-cleanup()
+cleanup(void)
{
(void)close(devfd);
}
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int c;
long modnum = -1;
diff --git a/sbin/wsconsctl/wsconsctl.c b/sbin/wsconsctl/wsconsctl.c
index ef00cff202c..bd146e1672e 100644
--- a/sbin/wsconsctl/wsconsctl.c
+++ b/sbin/wsconsctl/wsconsctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsconsctl.c,v 1.11 2002/05/22 20:36:06 mickey Exp $ */
+/* $OpenBSD: wsconsctl.c,v 1.12 2002/12/11 16:58:51 deraadt Exp $ */
/* $NetBSD: wsconsctl.c,v 1.2 1998/12/29 22:40:20 hannken Exp $ */
/*-
@@ -75,8 +75,7 @@ struct vartypesw {
struct vartypesw *tab_by_name(const char *);
void
-usage(msg)
- char *msg;
+usage(char *msg)
{
if (msg != NULL)
fprintf(stderr, "%s: %s\n", __progname, msg);
@@ -91,9 +90,7 @@ usage(msg)
}
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
int i, ch, error;
int aflag, wflag;
@@ -227,8 +224,7 @@ main(argc, argv)
}
struct vartypesw *
-tab_by_name(var)
- const char *var;
+tab_by_name(const char *var)
{
struct vartypesw *sw;
const char *p = strchr(var, '.');