From 7e67095c3c80e733b2a62eaba85609e489fee82d Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 21 Sep 2013 13:35:32 +0200 Subject: Fix gcc warning * term/users.c (trivfs_S_io_read): Add parentheses to make expression evaluation priority clear. --- term/users.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/term/users.c b/term/users.c index 09df9ab8..9d745c6d 100644 --- a/term/users.c +++ b/term/users.c @@ -679,7 +679,7 @@ trivfs_S_io_read (struct trivfs_protid *cred, while (!qsize (inputq)) { - if ((termflags & NO_CARRIER) && !(termstate.c_cflag & CLOCAL) || !amount) + if (((termflags & NO_CARRIER) && !(termstate.c_cflag & CLOCAL)) || !amount) { /* Return EOF, Posix.1 7.1.1.10. */ pthread_mutex_unlock (&global_lock); -- cgit v1.2.3