summaryrefslogtreecommitdiffstats
path: root/libcutils/include/cutils/native_handle.h
diff options
context:
space:
mode:
Diffstat (limited to 'libcutils/include/cutils/native_handle.h')
-rw-r--r--libcutils/include/cutils/native_handle.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcutils/include/cutils/native_handle.h b/libcutils/include/cutils/native_handle.h
index 7d6a98802..55754b5a4 100644
--- a/libcutils/include/cutils/native_handle.h
+++ b/libcutils/include/cutils/native_handle.h
@@ -25,8 +25,8 @@ extern "C" {
/* Declare a char array for use with native_handle_init */
#define NATIVE_HANDLE_DECLARE_STORAGE(name, maxFds, maxInts) \
- alignas(native_handle_t) char name[ \
- sizeof(native_handle_t) + sizeof(int) * (maxFds + maxInts)]
+ alignas(native_handle_t) char (name)[ \
+ sizeof(native_handle_t) + sizeof(int) * ((maxFds) + (maxInts))]
typedef struct native_handle
{