Enclose macro arguments in parentheses
authorJennifer Richards <jennifer@painless-security.com>
Mon, 16 Apr 2018 16:31:34 +0000 (12:31 -0400)
committerJennifer Richards <jennifer@painless-security.com>
Mon, 16 Apr 2018 16:31:34 +0000 (12:31 -0400)
include/trust_router/tid.h

index 91a9816..69a6377 100644 (file)
@@ -137,9 +137,9 @@ TR_EXPORT const TID_PATH *tid_srvr_get_path(const TID_SRVR_BLK *);
 TR_EXPORT int tid_srvr_get_key_expiration(const TID_SRVR_BLK *, struct timeval *tv_out);
 
 #define tid_resp_servers_foreach(RESP, SERVER, INDEX) \
-  for (INDEX=0,SERVER=NULL;                                            \
-       ((INDEX < tid_resp_get_num_servers(RESP))&&(SERVER = tid_resp_get_server(resp, INDEX))); \
-       INDEX++)
+  for ((INDEX)=0,(SERVER)=NULL;                                                \
+       (((INDEX) < tid_resp_get_num_servers(RESP))&&((SERVER) = tid_resp_get_server(resp, (INDEX)))); \
+       (INDEX)++)
 
 
 /* TID Client functions, in tid/tidc.c */