summaryrefslogtreecommitdiffstats
path: root/healthd
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2016-06-22 22:39:07 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-06-22 22:39:07 +0000
commit65828a0ec93c16436ac6337b81b0d4e93acbdd5b (patch)
tree0341451af12211527d5fdac2b0460b03fb1aea19 /healthd
parenta247e9ad47e4d94bfc14019ad9a2de79da32f908 (diff)
parent495541c5bb4372eb9e3596cc65f3958084817329 (diff)
downloadsystem_core-65828a0ec93c16436ac6337b81b0d4e93acbdd5b.tar.gz
system_core-65828a0ec93c16436ac6337b81b0d4e93acbdd5b.tar.bz2
system_core-65828a0ec93c16436ac6337b81b0d4e93acbdd5b.zip
Merge \"Fix misc-macro-parentheses warnings in system/core.\"
am: 495541c5bb Change-Id: I021b653779c5119398c31ee354372366ba029328
Diffstat (limited to 'healthd')
-rw-r--r--healthd/healthd_mode_charger.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/healthd/healthd_mode_charger.cpp b/healthd/healthd_mode_charger.cpp
index 58466263a..612885bc7 100644
--- a/healthd/healthd_mode_charger.cpp
+++ b/healthd/healthd_mode_charger.cpp
@@ -58,7 +58,7 @@ char *locale;
#define min(a,b) ((a) < (b) ? (a) : (b))
#endif
-#define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0]))
+#define ARRAY_SIZE(x) (sizeof(x)/sizeof((x)[0]))
#define MSEC_PER_SEC (1000LL)
#define NSEC_PER_MSEC (1000000LL)