summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Rosen Penev2020-06-03 15:50:19 -0700
committerGravatar Nikias Bassen2020-12-30 02:54:57 +0100
commit22988d874570c35251076f9edc1cd3c99ecb6785 (patch)
tree725a1119380e8745aa92d1ae53ce627c337410c5 /tools
parente7168f30e6fdf0a1f9cffdc9252f52d45e5a59ef (diff)
downloadlibusbmuxd-22988d874570c35251076f9edc1cd3c99ecb6785.tar.gz
libusbmuxd-22988d874570c35251076f9edc1cd3c99ecb6785.tar.bz2
Add parentheses to macro arguments
[clang-tidy] Found with bugprone-macro-parentheses Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/iproxy.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/iproxy.c b/tools/iproxy.c
index 5dca580..bd56ebd 100644
--- a/tools/iproxy.c
+++ b/tools/iproxy.c
@@ -68,9 +68,9 @@ struct client_data {
};
#define CDATA_FREE(x) if (x) { \
- if (x->fd > 0) socket_close(x->fd); \
- if (x->sfd > 0) socket_close(x->sfd); \
- free(x->udid); \
+ if ((x)->fd > 0) socket_close((x)->fd); \
+ if ((x)->sfd > 0) socket_close((x)->sfd); \
+ free((x)->udid); \
free(x); \
}