From b9cb3ff4b3aadf70bc478967d122208775532d72 Mon Sep 17 00:00:00 2001 From: Jennifer Richards Date: Mon, 16 Apr 2018 12:31:34 -0400 Subject: [PATCH] Enclose macro arguments in parentheses --- include/trust_router/tid.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/trust_router/tid.h b/include/trust_router/tid.h index 91a9816..69a6377 100644 --- a/include/trust_router/tid.h +++ b/include/trust_router/tid.h @@ -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 */ -- 2.1.4