Module Name: src
Committed By: martin
Date: Thu Sep 12 12:22:41 UTC 2013
Modified Files:
src/sys/dev: ccd.c
Log Message:
#ifdef a few variable declarations/initializations to match their use
To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/sys/dev/ccd.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ccd.c
diff -u src/sys/dev/ccd.c:1.144 src/sys/dev/ccd.c:1.145
--- src/sys/dev/ccd.c:1.144 Sat Apr 27 17:13:32 2013
+++ src/sys/dev/ccd.c Thu Sep 12 12:22:40 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: ccd.c,v 1.144 2013/04/27 17:13:32 christos Exp $ */
+/* $NetBSD: ccd.c,v 1.145 2013/09/12 12:22:40 martin Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998, 1999, 2007, 2009 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.144 2013/04/27 17:13:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd.c,v 1.145 2013/09/12 12:22:40 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1560,9 +1560,11 @@ MODULE(MODULE_CLASS_DRIVER, ccd, NULL);
static int
ccd_modcmd(modcmd_t cmd, void *arg)
{
- int bmajor, cmajor, error = 0;
+ int error = 0;
+#ifdef _MODULE
+ int bmajor = -1, cmajor = -1;
+#endif
- bmajor = cmajor = -1;
switch (cmd) {
case MODULE_CMD_INIT: