summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-10-14 13:01:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-10-14 13:01:34 +0000
commitc66f7ac434ba97ee8dcc0013f286550f972124d0 (patch)
tree61e6276071bebd752bfe0fe478d104cbb08d5ac9
parent35b24738b078d8c57c56d6df4cde541eb919eb53 (diff)
make gcc -Wall happy for lkms...
-rw-r--r--sys/kern/kern_lkm.c3
-rw-r--r--sys/sys/lkm.h11
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/kern_lkm.c b/sys/kern/kern_lkm.c
index 9316e62e502..00b9141313a 100644
--- a/sys/kern/kern_lkm.c
+++ b/sys/kern/kern_lkm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_lkm.c,v 1.12 1996/10/02 20:22:13 deraadt Exp $ */
+/* $OpenBSD: kern_lkm.c,v 1.13 1996/10/14 13:01:33 mickey Exp $ */
/* $NetBSD: kern_lkm.c,v 1.31 1996/03/31 21:40:27 christos Exp $ */
/*
@@ -99,7 +99,6 @@ 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));
void
lkminit()
diff --git a/sys/sys/lkm.h b/sys/sys/lkm.h
index 090fa254d56..72b269d4e21 100644
--- a/sys/sys/lkm.h
+++ b/sys/sys/lkm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: lkm.h,v 1.5 1996/08/29 15:17:34 deraadt Exp $ */
+/* $OpenBSD: lkm.h,v 1.6 1996/10/14 13:01:32 mickey Exp $ */
/* $NetBSD: lkm.h,v 1.12 1996/02/09 18:25:13 christos Exp $ */
/*
@@ -233,7 +233,7 @@ struct lkm_table {
name, \
devslot, \
devtype, \
- (void *)devp \
+ {(void *)devp} \
};
#define MOD_EXEC(name,execslot,execsw) \
@@ -255,6 +255,7 @@ struct lkm_table {
extern int lkm_nofunc __P((struct lkm_table *lkmtp, int cmd));
extern struct lkm_table *lkm_list __P((struct lkm_table *));
+extern int lkmdispatch __P((struct lkm_table *, int));
/*
* DISPATCH -- body function for use in module entry point function;
@@ -273,15 +274,15 @@ extern struct lkm_table *lkm_list __P((struct lkm_table *));
int error; \
case LKM_E_LOAD: \
lkmtp->private.lkm_any = (struct lkm_any *)&_module; \
- if (error = load(lkmtp, cmd)) \
+ if ((error = load(lkmtp, cmd)) != 0) \
return error; \
break; \
case LKM_E_UNLOAD: \
- if (error = unload(lkmtp, cmd)) \
+ if ((error = unload(lkmtp, cmd)) != 0) \
return error; \
break; \
case LKM_E_STAT: \
- if (error = stat(lkmtp, cmd)) \
+ if ((error = stat(lkmtp, cmd)) != 0) \
return error; \
break; \
} \