From fca961dab3abac3ac391ebe5f01eaaabb0be8fcf Mon Sep 17 00:00:00 2001 From: mmcc Date: Sun, 27 Dec 2015 17:51:20 +0000 Subject: Put macro arg in parentheses. ok nicm@ --- usr.bin/less/ch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/less/ch.c b/usr.bin/less/ch.c index a4df21ab217..86500972b4d 100644 --- a/usr.bin/less/ch.c +++ b/usr.bin/less/ch.c @@ -81,7 +81,7 @@ struct filestate { * Macros to manipulate the list of buffers in thisfile->buflist. */ #define FOR_BUFS(bn) \ - for (bn = ch_bufhead; bn != END_OF_CHAIN; bn = bn->next) + for ((bn) = ch_bufhead; (bn) != END_OF_CHAIN; (bn) = (bn)->next) #define BUF_RM(bn) \ (bn)->next->prev = (bn)->prev; \ -- cgit v1.2.3