Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev #ifdef a few variable declarations/initializations t...
details: https://anonhg.NetBSD.org/src/rev/ab7f352031c1
branches: trunk
changeset: 789886:ab7f352031c1
user: martin <martin%NetBSD.org@localhost>
date: Thu Sep 12 12:22:40 2013 +0000
description:
#ifdef a few variable declarations/initializations to match their use
diffstat:
sys/dev/ccd.c | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diffs (32 lines):
diff -r cee9971b04ec -r ab7f352031c1 sys/dev/ccd.c
--- a/sys/dev/ccd.c Thu Sep 12 12:20:01 2013 +0000
+++ b/sys/dev/ccd.c Thu Sep 12 12:22:40 2013 +0000
@@ -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 @@
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:
Home |
Main Index |
Thread Index |
Old Index