Module Name:    src
Committed By:   pgoyette
Date:           Sun Mar 18 22:48:00 UTC 2018

Modified Files:
        src/sys/compat/common: ccd_60.c

Log Message:
Declare 'error' if needed


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/compat/common/ccd_60.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/compat/common/ccd_60.c
diff -u src/sys/compat/common/ccd_60.c:1.1 src/sys/compat/common/ccd_60.c:1.2
--- src/sys/compat/common/ccd_60.c:1.1	Sun Mar 18 20:33:52 2018
+++ src/sys/compat/common/ccd_60.c	Sun Mar 18 22:48:00 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: ccd_60.c,v 1.1 2018/03/18 20:33:52 christos Exp $	*/
+/*	$NetBSD: ccd_60.c,v 1.2 2018/03/18 22:48:00 pgoyette Exp $	*/
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -26,7 +26,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ccd_60.c,v 1.1 2018/03/18 20:33:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd_60.c,v 1.2 2018/03/18 22:48:00 pgoyette Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -52,6 +52,8 @@ compat_60_ccdioctl(dev_t dev, u_long cmd
 	switch (cmd) {
 #if defined(COMPAT_60) && !defined(_LP64)
 	case CCDIOCSET_60: {
+		int error;
+
 		if (data == NULL)
 			return 0;
 		
@@ -77,6 +79,8 @@ compat_60_ccdioctl(dev_t dev, u_long cmd
 	}
 
 	case CCDIOCCLR_60:
+		int error;
+
 		if (data == NULL)
 			return ENOSYS;
 		/*

Reply via email to