summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2016-05-18 17:47:19 -0500
committerChih-Hung Hsieh2016-05-18 17:48:50 -0500
commitf0f94fe49b04c2d2bf0a0a44a7afb9118607b351 (patch)
treecb3efefb85db7a7f8b37638e5bd61b3ebe9b944a /liblog/config_write.h
parent9b0eb7cdf4ac4650fc3f476c2f5a91c50a18e524 (diff)
downloadplatform-system-core-f0f94fe49b04c2d2bf0a0a44a7afb9118607b351.tar.gz
platform-system-core-f0f94fe49b04c2d2bf0a0a44a7afb9118607b351.tar.xz
platform-system-core-f0f94fe49b04c2d2bf0a0a44a7afb9118607b351.zip
Fix misc-macro-parentheses warnings in liblog.
Bug: 28705665 Change-Id: Ib272a83cb93b09d986c19a40e23a2679b9e17558
Diffstat (limited to 'liblog/config_write.h')
-rw-r--r--liblog/config_write.h24
1 files changed, 12 insertions, 12 deletions
diff --git a/liblog/config_write.h b/liblog/config_write.h
index 3a02a4e79..3b01a9a80 100644
--- a/liblog/config_write.h
+++ b/liblog/config_write.h
@@ -27,21 +27,21 @@ extern LIBLOG_HIDDEN struct listnode __android_log_transport_write;
27extern LIBLOG_HIDDEN struct listnode __android_log_persist_write; 27extern LIBLOG_HIDDEN struct listnode __android_log_persist_write;
28 28
29#define write_transport_for_each(transp, transports) \ 29#define write_transport_for_each(transp, transports) \
30 for (transp = node_to_item((transports)->next, \ 30 for ((transp) = node_to_item((transports)->next, \
31 struct android_log_transport_write, node); \ 31 struct android_log_transport_write, node); \
32 (transp != node_to_item(transports, \ 32 ((transp) != node_to_item(transports, \
33 struct android_log_transport_write, node)); \ 33 struct android_log_transport_write, node)); \
34 transp = node_to_item(transp->node.next, \ 34 (transp) = node_to_item((transp)->node.next, \
35 struct android_log_transport_write, node)) \ 35 struct android_log_transport_write, node)) \
36 36
37#define write_transport_for_each_safe(transp, n, transports) \ 37#define write_transport_for_each_safe(transp, n, transports) \
38 for (transp = node_to_item((transports)->next, \ 38 for ((transp) = node_to_item((transports)->next, \
39 struct android_log_transport_write, node), \ 39 struct android_log_transport_write, node), \
40 n = transp->node.next; \ 40 (n) = (transp)->node.next; \
41 (transp != node_to_item(transports, \ 41 ((transp) != node_to_item(transports, \
42 struct android_log_transport_write, node)); \ 42 struct android_log_transport_write, node)); \
43 transp = node_to_item(n, struct android_log_transport_write, node), \ 43 (transp) = node_to_item(n, struct android_log_transport_write, node), \
44 n = transp->node.next) 44 (n) = (transp)->node.next)
45 45
46LIBLOG_HIDDEN void __android_log_config_write(); 46LIBLOG_HIDDEN void __android_log_config_write();
47 47