From 8c2a8a257639f401933e7a13c7f025f75a4689bf Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 9 May 1996 23:46:06 +0000 Subject: (main) [proc_stat_has_ctty]: Add parentheses around assignment used as truth value. --- utils/ps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils') 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; -- cgit v1.2.3