Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/compat/common Declare 'error' if needed



details:   https://anonhg.NetBSD.org/src/rev/235fd66536d4
branches:  trunk
changeset: 831264:235fd66536d4
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Sun Mar 18 22:48:00 2018 +0000

description:
Declare 'error' if needed

diffstat:

 sys/compat/common/ccd_60.c |  8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diffs (36 lines):

diff -r 50e48bef5b1c -r 235fd66536d4 sys/compat/common/ccd_60.c
--- a/sys/compat/common/ccd_60.c        Sun Mar 18 20:33:52 2018 +0000
+++ b/sys/compat/common/ccd_60.c        Sun Mar 18 22:48:00 2018 +0000
@@ -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 @@
        switch (cmd) {
 #if defined(COMPAT_60) && !defined(_LP64)
        case CCDIOCSET_60: {
+               int error;
+
                if (data == NULL)
                        return 0;
                
@@ -77,6 +79,8 @@
        }
 
        case CCDIOCCLR_60:
+               int error;
+
                if (data == NULL)
                        return ENOSYS;
                /*



Home | Main Index | Thread Index | Old Index