diff options
author | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:46:06 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1996-05-09 23:46:06 +0000 |
commit | 8c2a8a257639f401933e7a13c7f025f75a4689bf (patch) | |
tree | 382c50a6675e1966982cbb28c47c8b4fd40e539f /utils | |
parent | cd172327a6ec8c305d0e1274ea636f125b1acad1 (diff) |
(main) [proc_stat_has_ctty]: Add parentheses around assignment used as
truth value.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/ps.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |