From d8b3df77ecc9d7ea05101c0cfdccea469c176e71 Mon Sep 17 00:00:00 2001 From: John Hood Date: Sat, 9 Mar 2024 06:20:11 -0500 Subject: [PATCH] Fix an operator precedence warning from clang. --- fs/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/tty.c b/fs/tty.c index 9cd3a08c..0d6cf4f6 100644 --- a/fs/tty.c +++ b/fs/tty.c @@ -672,7 +672,7 @@ static int tiocgpgrp(struct tty *tty, pid_t_ *fg_group) { lock(&slave->lock); } - if (tty == slave && !tty_is_current(slave) || slave->fg_group == 0) { + if (tty == slave && (!tty_is_current(slave) || slave->fg_group == 0)) { err = _ENOTTY; goto error_no_ctrl_tty; }