summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorMichael I. Bushnell <mib@gnu.org>1996-05-09 23:46:06 +0000
committerMichael I. Bushnell <mib@gnu.org>1996-05-09 23:46:06 +0000
commit8c2a8a257639f401933e7a13c7f025f75a4689bf (patch)
tree382c50a6675e1966982cbb28c47c8b4fd40e539f /utils
parentcd172327a6ec8c305d0e1274ea636f125b1acad1 (diff)
(main) [proc_stat_has_ctty]: Add parentheses around assignment used as
truth value.
Diffstat (limited to 'utils')
-rw-r--r--utils/ps.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/ps.c b/utils/ps.c
index 128c77b7..45216189 100644
--- a/utils/ps.c
+++ b/utils/ps.c
@@ -426,7 +426,7 @@ main(int argc, char *argv[])
const char *name = ps_tty_name (tty);
const char *short_name = ps_tty_short_name(tty);
- while (try = argz_next (tty_names, num_tty_names, try))
+ while ((try = argz_next (tty_names, num_tty_names, try)))
if ((name && strcmp (try, name) == 0)
|| (short_name && strcmp (try, short_name) == 0))
return TRUE;