diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 13:35:32 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-09-21 13:35:32 +0200 |
commit | 7e67095c3c80e733b2a62eaba85609e489fee82d (patch) | |
tree | 05d362978185a2222ad29b027dad3871230ec0a8 | |
parent | bfd5b9a0d34e4dad946c80fbffd0393ff9c0e987 (diff) |
Fix gcc warning
* term/users.c (trivfs_S_io_read): Add parentheses to make expression
evaluation priority clear.
-rw-r--r-- | term/users.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |