Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/coda C requires a statement after a label, and a declara...
details: https://anonhg.NetBSD.org/src/rev/c4040167a34f
branches: trunk
changeset: 790597:c4040167a34f
user: riz <riz%NetBSD.org@localhost>
date: Fri Oct 18 00:03:35 2013 +0000
description:
C requires a statement after a label, and a declaration is not a
statement, so create a block using {}. From christos.
diffstat:
sys/coda/coda_psdev.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (33 lines):
diff -r 920781700897 -r c4040167a34f sys/coda/coda_psdev.c
--- a/sys/coda/coda_psdev.c Thu Oct 17 23:58:05 2013 +0000
+++ b/sys/coda/coda_psdev.c Fri Oct 18 00:03:35 2013 +0000
@@ -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 @@
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;
Home |
Main Index |
Thread Index |
Old Index