From 747e296ff656813340c9355d98b0a13cba8473bc Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Tue, 4 Dec 2018 21:29:51 -0600 Subject: Add FLAG(x) macro, expanding to (toys.optflags & FLAG_##x) --- toys/posix/who.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/who.c') diff --git a/toys/posix/who.c b/toys/posix/who.c index 414cdfc0..53252e87 100644 --- a/toys/posix/who.c +++ b/toys/posix/who.c @@ -31,7 +31,7 @@ void who_main(void) setutxent(); while ((entry = getutxent())) { - if ((toys.optflags & FLAG_a) || entry->ut_type == USER_PROCESS) { + if (FLAG(a) || entry->ut_type == USER_PROCESS) { time_t time; int time_size; char *times; -- cgit v1.2.3