Module Name:    src
Committed By:   pgoyette
Date:           Sun Mar 18 22:49:26 UTC 2018

Modified Files:
        src/sys/compat/common [pgoyette-compat]: ccd_60.c

Log Message:
Declare 'error' if needed


To generate a diff of this commit:
cvs rdiff -u -r1.1.2.2 -r1.1.2.3 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.2.2 src/sys/compat/common/ccd_60.c:1.1.2.3
--- src/sys/compat/common/ccd_60.c:1.1.2.2	Sun Mar 18 21:41:31 2018
+++ src/sys/compat/common/ccd_60.c	Sun Mar 18 22:49:26 2018
@@ -1,4 +1,4 @@
-/*	$NetBSD: ccd_60.c,v 1.1.2.2 2018/03/18 21:41:31 pgoyette Exp $	*/
+/*	$NetBSD: ccd_60.c,v 1.1.2.3 2018/03/18 22:49:26 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.2.2 2018/03/18 21:41:31 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ccd_60.c,v 1.1.2.3 2018/03/18 22:49:26 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;
 		/*
@@ -90,14 +94,16 @@ compat_60_ccdioctl(dev_t dev, u_long cmd
 	}
 }
 
-void
+int
 ccd_60_init(void)
 {
-    compat_ccd_ioctl_60 = compat_60_ccdioctl;
+	compat_ccd_ioctl_60 = compat_60_ccdioctl;
+	return 0;
 }
 
-void
+int
 ccd_60_fini(void)
 {
-    compat_ccd_ioctl_60 = (void *)enosys;
+	compat_ccd_ioctl_60 = (void *)enosys;
+	return 0;
 }

Reply via email to