summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorriz <riz@NetBSD.org>2013-10-18 00:03:35 +0000
committerriz <riz@NetBSD.org>2013-10-18 00:03:35 +0000
commit99440477e993287c18ed6d5dfc81e4391eb9a280 (patch)
treecabc47a3ef79e22f18e0414c2badd79d299e687c /sys
parent37a0afb7d8ec9855ddbd9243e529847084ced216 (diff)
C requires a statement after a label, and a declaration is not a
statement, so create a block using {}. From christos.
Diffstat (limited to 'sys')
-rw-r--r--sys/coda/coda_psdev.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/coda/coda_psdev.c b/sys/coda/coda_psdev.c
index 66731450ba5..32af7006630 100644
--- a/sys/coda/coda_psdev.c
+++ b/sys/coda/coda_psdev.c
@@ -1,4 +1,4 @@
-/* $NetBSD: coda_psdev.c,v 1.50 2013/10/17 20:54:24 christos Exp $ */
+/* $NetBSD: coda_psdev.c,v 1.51 2013/10/18 00:03:35 riz Exp $ */
/*
*
@@ -54,7 +54,7 @@
/* These routines are the device entry points for Venus. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.50 2013/10/17 20:54:24 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: coda_psdev.c,v 1.51 2013/10/18 00:03:35 riz Exp $");
extern int coda_nc_initialized; /* Set if cache has been initialized */
@@ -735,12 +735,14 @@ vcoda_modcmd(modcmd_t cmd, void *arg)
switch (cmd) {
case MODULE_CMD_INIT:
#ifdef _MODULE
+ {
int cmajor, dmajor;
vcodaattach(NVCODA);
dmajor = cmajor = -1;
return devsw_attach("vcoda", NULL, &dmajor,
&vcoda_cdevsw, &cmajor);
+ }
#endif
break;