Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/sun update for GCC 6:



details:   https://anonhg.NetBSD.org/src/rev/dc2e4193bdd6
branches:  trunk
changeset: 829678:dc2e4193bdd6
user:      mrg <mrg%NetBSD.org@localhost>
date:      Thu Feb 08 10:52:05 2018 +0000

description:
update for GCC 6:

kbd_input_wskbd() has a missing {} issue.

diffstat:

 sys/dev/sun/kbd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (33 lines):

diff -r c0a8b3caa42f -r dc2e4193bdd6 sys/dev/sun/kbd.c
--- a/sys/dev/sun/kbd.c Thu Feb 08 10:42:12 2018 +0000
+++ b/sys/dev/sun/kbd.c Thu Feb 08 10:52:05 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kbd.c,v 1.68 2014/07/25 08:10:39 dholland Exp $        */
+/*     $NetBSD: kbd.c,v 1.69 2018/02/08 10:52:05 mrg Exp $     */
 
 /*
  * Copyright (c) 1992, 1993
@@ -47,7 +47,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.68 2014/07/25 08:10:39 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kbd.c,v 1.69 2018/02/08 10:52:05 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -948,12 +948,13 @@
 #endif
                        case 0x30:
 #if NSYSMON_ENVSYS
-                               if (k->k_isconsole)
+                               if (k->k_isconsole) {
                                        k->k_ev = KEY_UP(code) ?
                                            PSWITCH_EVENT_RELEASED :
                                            PSWITCH_EVENT_PRESSED;
                                        sysmon_task_queue_sched(0,
                                            kbd_powerbutton, k);
+                               }
 #endif
                                return;
                }



Home | Main Index | Thread Index | Old Index