Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses KNF nit.



details:   https://anonhg.NetBSD.org/src/rev/f7254a10d15f
branches:  trunk
changeset: 932704:f7254a10d15f
user:      simonb <simonb%NetBSD.org@localhost>
date:      Thu May 14 11:50:04 2020 +0000

description:
KNF nit.

diffstat:

 lib/libcurses/getch.c |  10 ++++------
 1 files changed, 4 insertions(+), 6 deletions(-)

diffs (38 lines):

diff -r 7c2955054758 -r f7254a10d15f lib/libcurses/getch.c
--- a/lib/libcurses/getch.c     Thu May 14 09:47:25 2020 +0000
+++ b/lib/libcurses/getch.c     Thu May 14 11:50:04 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getch.c,v 1.73 2019/06/09 07:40:14 blymn Exp $ */
+/*     $NetBSD: getch.c,v 1.74 2020/05/14 11:50:04 simonb Exp $        */
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)getch.c    8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: getch.c,v 1.73 2019/06/09 07:40:14 blymn Exp $");
+__RCSID("$NetBSD: getch.c,v 1.74 2020/05/14 11:50:04 simonb Exp $");
 #endif
 #endif                                 /* not lint */
 
@@ -876,8 +876,7 @@
        __save_termios();
 
        if (win->flags & __KEYPAD) {
-               switch (win->delay)
-               {
+               switch (win->delay) {
                case -1:
                        inp = inkey (win->flags & __NOTIMEOUT ? 0 : 1, 0);
                        break;
@@ -891,8 +890,7 @@
                        break;
                }
        } else {
-               switch (win->delay)
-               {
+               switch (win->delay) {
                case -1:
                        if (__delay() == ERR)
                                return ERR;



Home | Main Index | Thread Index | Old Index