summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChih-Hung Hsieh2016-05-18 17:41:16 -0500
committerChih-Hung Hsieh2016-05-18 17:41:16 -0500
commiteabd5108b310c7dcc773285a15de5cd62b16575e (patch)
tree24f17d7cbfb0911bc311321efe9ec2b99ee62120 /libsparse
parent9b0eb7cdf4ac4650fc3f476c2f5a91c50a18e524 (diff)
downloadplatform-system-core-eabd5108b310c7dcc773285a15de5cd62b16575e.tar.gz
platform-system-core-eabd5108b310c7dcc773285a15de5cd62b16575e.tar.xz
platform-system-core-eabd5108b310c7dcc773285a15de5cd62b16575e.zip
Fix misc-macro-parentheses warnings in libion, libsparse, libmem*
Bug: 28705665 Change-Id: I3dd5c086787f5e48ab100a71a42109ea0e417bf9
Diffstat (limited to 'libsparse')
-rw-r--r--libsparse/output_file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsparse/output_file.c b/libsparse/output_file.c
index cd3080038..d2847367a 100644
--- a/libsparse/output_file.c
+++ b/libsparse/output_file.c
@@ -57,7 +57,7 @@
57#define CHUNK_HEADER_LEN (sizeof(chunk_header_t)) 57#define CHUNK_HEADER_LEN (sizeof(chunk_header_t))
58 58
59#define container_of(inner, outer_t, elem) \ 59#define container_of(inner, outer_t, elem) \
60 ((outer_t *)((char *)inner - offsetof(outer_t, elem))) 60 ((outer_t *)((char *)(inner) - offsetof(outer_t, elem)))
61 61
62struct output_file_ops { 62struct output_file_ops {
63 int (*open)(struct output_file *, int fd); 63 int (*open)(struct output_file *, int fd);