gcc7 -Wint-in-bool-context (weird!)
authormirabilos <m@mirbsd.org>
Tue, 8 Aug 2017 15:52:05 +0000 (17:52 +0200)
committermirabilos <m@mirbsd.org>
Tue, 8 Aug 2017 16:04:29 +0000 (18:04 +0200)
tty.c

diff --git a/tty.c b/tty.c
index 310995b..11a5dad 100644 (file)
--- a/tty.c
+++ b/tty.c
@@ -408,7 +408,7 @@ baud_reset(int bbaud)
        upc = DIVIDEND / baud;
        if (obuf)
                joe_free(obuf);
-       if (!(TIMES * upc))
+       if ((TIMES * upc) == 0)
                obufsiz = 4096;
        else {
                obufsiz = 1000000 / (TIMES * upc);