Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arc/dev shut up gcc warning: suggest explicit brace...



details:   https://anonhg.NetBSD.org/src/rev/755c801d14ec
branches:  trunk
changeset: 487762:755c801d14ec
user:      soda <soda%NetBSD.org@localhost>
date:      Mon Jun 12 17:04:52 2000 +0000

description:
shut up gcc warning: suggest explicit braces to avoid ambiguous `else'
from Izumi TSUTSUI <tsutsui%netbsd.org@localhost> and Shuichiro URATA <ur%a-r.org@localhost>.

diffstat:

 sys/arch/arc/dev/pccons.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (23 lines):

diff -r 3614fbeee320 -r 755c801d14ec sys/arch/arc/dev/pccons.c
--- a/sys/arch/arc/dev/pccons.c Mon Jun 12 17:01:05 2000 +0000
+++ b/sys/arch/arc/dev/pccons.c Mon Jun 12 17:04:52 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pccons.c,v 1.18 2000/06/09 05:42:00 soda Exp $ */
+/*     $NetBSD: pccons.c,v 1.19 2000/06/12 17:04:52 soda Exp $ */
 /*     $OpenBSD: pccons.c,v 1.22 1999/01/30 22:39:37 imp Exp $ */
 /*     NetBSD: pccons.c,v 1.89 1995/05/04 19:35:20 cgd Exp     */
 /*     NetBSD: pms.c,v 1.21 1995/04/18 02:25:18 mycroft Exp    */
@@ -2314,11 +2314,12 @@
        int revents = 0;
        int s = spltty();
 
-       if (events & (POLLIN | POLLRDNORM))
+       if (events & (POLLIN | POLLRDNORM)) {
                if (sc->sc_q.c_cc > 0)
                        revents |= events & (POLLIN | POLLRDNORM);
                else
                        selrecord(p, &sc->sc_rsel);
+       }
 
        splx(s);
        return (revents);



Home | Main Index | Thread Index | Old Index