summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1996-07-02 06:52:07 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1996-07-02 06:52:07 +0000
commit56c563e32af388c2363991a1f6562f4388760a9e (patch)
tree12b25e46c697f6b644acb92b10e8a28b4c4468db /sys
parent18834530fbaf59f00788eb643ee96e332b195804 (diff)
-Wall & -Wstrict-prototype fixes
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_lkm.c5
-rw-r--r--sys/kern/subr_autoconf.c6
-rw-r--r--sys/kern/subr_prf.c12
-rw-r--r--sys/kern/subr_userconf.c5
-rw-r--r--sys/kern/vfs_bio.c4
-rw-r--r--sys/miscfs/procfs/procfs_subr.c4
-rw-r--r--sys/net/if.c4
-rw-r--r--sys/net/if.h3
-rw-r--r--sys/sys/systm.h6
9 files changed, 28 insertions, 21 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c
index 14534e36dd3..dca32291ee0 100644
--- a/sys/kern/kern_lkm.c
+++ b/sys/kern/kern_lkm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lkm.c,v 1.5 1996/06/21 17:03:26 mickey Exp $ */
+/* $OpenBSD: kern_lkm.c,v 1.6 1996/07/02 06:51:56 niklas Exp $ */
/* $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $ */
/*
@@ -79,7 +79,7 @@ static TAILQ_HEAD(, lkm_table) lkmods; /* table of loaded modules */
static struct lkm_table *curp; /* global for in-progress ops */
static size_t nlkms = 0; /* number of loaded lkms */
-static struct lkm_table *lkmalloc __P(()); /* allocate new lkm table entry */
+static struct lkm_table *lkmalloc __P((void)); /* allocate new lkm table entry */
static void lkmfree __P((struct lkm_table *)); /* free it */
static struct lkm_table *lkmlookup __P((int, char *, int *));
static void lkmunreserve __P((void));
@@ -91,6 +91,7 @@ static int _lkm_strmod __P((struct lkm_table *, int));
#endif
static int _lkm_exec __P((struct lkm_table *, int));
+void lkminit __P((void));
int lkmexists __P((struct lkm_table *));
int lkmdispatch __P((struct lkm_table *, int));
diff --git a/sys/kern/subr_autoconf.c b/sys/kern/subr_autoconf.c
index 3ba36c02b75..62f0da22a53 100644
--- a/sys/kern/subr_autoconf.c
+++ b/sys/kern/subr_autoconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_autoconf.c,v 1.8 1996/06/23 19:34:30 maja Exp $ */
+/* $OpenBSD: subr_autoconf.c,v 1.9 1996/07/02 06:51:59 niklas Exp $ */
/* $NetBSD: subr_autoconf.c,v 1.21 1996/04/04 06:06:18 cgd Exp $ */
/*
@@ -179,7 +179,7 @@ config_search(fn, parent, aux)
*/
if (cf->cf_fstate == FSTATE_FOUND)
continue;
- if (cf->cf_fstate == FSTATE_DNOTFOUND |
+ if (cf->cf_fstate == FSTATE_DNOTFOUND ||
cf->cf_fstate == FSTATE_DSTAR)
continue;
for (p = cf->cf_parents; *p >= 0; p++)
@@ -218,7 +218,7 @@ config_scan(fn, parent)
*/
if (cf->cf_fstate == FSTATE_FOUND)
continue;
- if (cf->cf_fstate == FSTATE_DNOTFOUND |
+ if (cf->cf_fstate == FSTATE_DNOTFOUND ||
cf->cf_fstate == FSTATE_DSTAR)
continue;
for (p = cf->cf_parents; *p >= 0; p++)
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index 2f70620a321..46e68bf8633 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_prf.c,v 1.6 1996/06/26 20:39:21 dm Exp $ */
+/* $OpenBSD: subr_prf.c,v 1.7 1996/07/02 06:51:59 niklas Exp $ */
/* $NetBSD: subr_prf.c,v 1.25 1996/04/22 01:38:46 christos Exp $ */
/*-
@@ -114,7 +114,7 @@ panic(fmt, va_alist)
if (panicstr)
bootopt |= RB_NOSYNC;
else {
- vsprintf (panicbuf, fmt, ap);
+ vsprintf(panicbuf, fmt, ap);
panicstr = panicbuf;
}
@@ -638,10 +638,10 @@ sprintf(buf, cfmt, va_alist)
va_list ap;
int ret;
- va_start (ap, cfmt);
- ret = vsprintf (buf, cfmt, ap);
- va_end (ap);
- return (ret);
+ va_start(ap, cfmt);
+ ret = vsprintf(buf, cfmt, ap);
+ va_end(ap);
+ return(ret);
}
/*
diff --git a/sys/kern/subr_userconf.c b/sys/kern/subr_userconf.c
index 6d8512b6288..efac403ac75 100644
--- a/sys/kern/subr_userconf.c
+++ b/sys/kern/subr_userconf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_userconf.c,v 1.3 1996/06/27 08:43:06 maja Exp $ */
+/* $OpenBSD: subr_userconf.c,v 1.4 1996/07/02 06:52:00 niklas Exp $ */
/*
* Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
@@ -34,6 +34,7 @@
#ifdef BOOT_CONFIG
#include <sys/param.h>
+#include <sys/systm.h>
#include <sys/device.h>
#include <sys/malloc.h>
@@ -821,6 +822,7 @@ char *cmd;
return(0);
}
+void
user_config()
{
char prompt[] = "UKC> ";
@@ -837,6 +839,7 @@ user_config()
printf("Continuing...\n");
}
#else BOOT_CONFIG
+void
user_config()
{
printf("User Kernel Config isn't supported in this kernel\n");
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index f2db58ffa1d..9c84cc77e60 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_bio.c,v 1.8 1996/06/26 19:44:59 tholo Exp $ */
+/* $OpenBSD: vfs_bio.c,v 1.9 1996/07/02 06:52:01 niklas Exp $ */
/* $NetBSD: vfs_bio.c,v 1.44 1996/06/11 11:15:36 pk Exp $ */
/*-
@@ -380,8 +380,6 @@ void
bdwrite(bp)
struct buf *bp;
{
- int setit;
-
/*
* If the block hasn't been seen before:
* (1) Mark it as having been seen,
diff --git a/sys/miscfs/procfs/procfs_subr.c b/sys/miscfs/procfs/procfs_subr.c
index 26484b7584c..1aae32931e2 100644
--- a/sys/miscfs/procfs/procfs_subr.c
+++ b/sys/miscfs/procfs/procfs_subr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: procfs_subr.c,v 1.3 1996/06/21 12:49:56 mickey Exp $ */
+/* $OpenBSD: procfs_subr.c,v 1.4 1996/07/02 06:52:03 niklas Exp $ */
/* $NetBSD: procfs_subr.c,v 1.15 1996/02/12 15:01:42 christos Exp $ */
/*
@@ -93,7 +93,6 @@ procfs_allocvp(mp, vpp, pid, pfs_type)
{
struct pfsnode *pfs;
struct vnode *vp;
- struct pfsnode **pp;
int error;
loop:
@@ -200,7 +199,6 @@ int
procfs_freevp(vp)
struct vnode *vp;
{
- struct pfsnode **pfspp;
struct pfsnode *pfs = VTOPFS(vp);
TAILQ_REMOVE(&pfshead, pfs, list);
diff --git a/sys/net/if.c b/sys/net/if.c
index 04828b533e8..07e08687a9a 100644
--- a/sys/net/if.c
+++ b/sys/net/if.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.c,v 1.10 1996/06/29 18:54:08 deraadt Exp $ */
+/* $OpenBSD: if.c,v 1.11 1996/07/02 06:52:05 niklas Exp $ */
/* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */
/*
@@ -51,6 +51,8 @@
#include <net/if_types.h>
#include <net/radix.h>
+static void if_attachsetup __P((struct ifnet *));
+
int ifqmaxlen = IFQ_MAXLEN;
void if_slowtimo __P((void *arg));
diff --git a/sys/net/if.h b/sys/net/if.h
index 94dc4f9b932..3bff4b18c66 100644
--- a/sys/net/if.h
+++ b/sys/net/if.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if.h,v 1.6 1996/06/29 18:54:10 deraadt Exp $ */
+/* $OpenBSD: if.h,v 1.7 1996/07/02 06:52:04 niklas Exp $ */
/* $NetBSD: if.h,v 1.23 1996/05/07 02:40:27 thorpej Exp $ */
/*
@@ -338,6 +338,7 @@ char *ether_sprintf __P((u_char *));
void if_attach __P((struct ifnet *));
void if_attachtail __P((struct ifnet *));
+void if_attachhead __P((struct ifnet *));
void if_down __P((struct ifnet *));
void if_qflush __P((struct ifqueue *));
void if_slowtimo __P((void *));
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 75dfe191581..73f833fb7b0 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systm.h,v 1.6 1996/06/09 03:40:36 briggs Exp $ */
+/* $OpenBSD: systm.h,v 1.7 1996/07/02 06:52:06 niklas Exp $ */
/* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */
/*-
@@ -41,6 +41,8 @@
* @(#)systm.h 8.4 (Berkeley) 2/23/94
*/
+#include <machine/stdarg.h>
+
/*
* The `securelevel' variable controls the security level of the system.
* It can only be decreased by process 1 (/sbin/init).
@@ -140,6 +142,8 @@ void printf __P((const char *, ...))
__kprintf_attribute__((__format__(__kprintf__,1,2)));
void uprintf __P((const char *, ...))
__kprintf_attribute__((__format__(__kprintf__,1,2)));
+int vsprintf __P((char *, const char *, va_list))
+ __kprintf_attribute__((__format__(__kprintf__,2,3)));
int sprintf __P((char *buf, const char *, ...))
__kprintf_attribute__((__format__(__kprintf__,2,3)));
void ttyprintf __P((struct tty *, const char *, ...))