Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb ifdef variable like their use



details:   https://anonhg.NetBSD.org/src/rev/7b3aab8e6ef0
branches:  trunk
changeset: 790062:7b3aab8e6ef0
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Sep 15 15:44:53 2013 +0000

description:
ifdef variable like their use

diffstat:

 sys/dev/usb/ukbd.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 0b1feeb7532a -r 7b3aab8e6ef0 sys/dev/usb/ukbd.c
--- a/sys/dev/usb/ukbd.c        Sun Sep 15 15:43:20 2013 +0000
+++ b/sys/dev/usb/ukbd.c        Sun Sep 15 15:44:53 2013 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ukbd.c,v 1.127 2013/07/22 13:43:49 soren Exp $        */
+/*      $NetBSD: ukbd.c,v 1.128 2013/09/15 15:44:53 martin Exp $        */
 
 /*
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.127 2013/07/22 13:43:49 soren Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ukbd.c,v 1.128 2013/09/15 15:44:53 martin Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_ukbd.h"
@@ -820,9 +820,11 @@
        if (sc->sc_rawkbd) {
                u_char cbuf[MAXKEYS * 2];
                int c;
-               int npress;
+#if defined(UKBD_REPEAT)
+               int npress = 0;
+#endif
 
-               for (npress = i = j = 0; i < nkeys; i++) {
+               for (i = j = 0; i < nkeys; i++) {
                        key = ibuf[i];
                        c = ukbd_trtab[key & CODEMASK];
                        if (c == NN)



Home | Main Index | Thread Index | Old Index