From bdec10cbb195eabe419bd7fdabedc2b894b050d2 Mon Sep 17 00:00:00 2001 From: Lon Hohberger Date: Tue, 20 Sep 2011 11:17:35 -0400 Subject: [PATCH] Reword assignment to appease static analyzers Signed-off-by: Lon Hohberger --- include/list.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/list.h b/include/list.h index 0038f44..2ca8f69 100644 --- a/include/list.h +++ b/include/list.h @@ -68,14 +68,14 @@ do { \ * * cnt ends up being the number of items in the list. */ #define list_for(list, curr, cnt) \ - if (!(cnt=0) && (list != NULL) && (*list != NULL)) \ + if (((cnt=0) == 0) && (list != NULL) && (*list != NULL)) \ for (curr = *list; \ (cnt == 0) || (curr != *list); \ curr = (void*)le(curr)->le_next, \ cnt++) #define list_for_rev(list, curr, cnt) \ - if (!(cnt=0) && list && *list) \ + if (((cnt=0) == 0) && list && *list) \ for (curr = (void *)(le(*list)->le_prev); \ (cnt == 0) || ((void *)curr != le(*list)->le_prev); \ curr = (void*)(le(curr)->le_prev), \