diff options
author | Szymon Janc <szymon.janc@tieto.com> | 2013-12-02 16:17:58 +0100 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2013-12-03 13:44:04 +0200 |
commit | ffb856322c7518c0ad9c1ed4213e8c38512bc598 (patch) | |
tree | f0830b3b3437aa89419055a63b87409e06367533 /android/socket.c | |
parent | 566bae35fc535d8b8642008fe2802d4038c58bb7 (diff) | |
download | bluez-ffb856322c7518c0ad9c1ed4213e8c38512bc598.tar.gz |
android: Use G_N_ELEMENTS macro for table elements calculation
It is more common in codebase to use this macro instead of opencoded
(sizeof(foo)/sizeof(foo[0])).
Diffstat (limited to 'android/socket.c')
-rw-r--r-- | android/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/android/socket.c b/android/socket.c index 76b40c841..c9eca4463 100644 --- a/android/socket.c +++ b/android/socket.c @@ -929,7 +929,7 @@ void bt_socket_register(const bdaddr_t *addr) bacpy(&adapter_addr, addr); ipc_register(HAL_SERVICE_ID_SOCK, cmd_handlers, - sizeof(cmd_handlers)/sizeof(cmd_handlers[0])); + G_N_ELEMENTS(cmd_handlers)); } void bt_socket_unregister(void) |