summaryrefslogtreecommitdiff
path: root/android/main.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2013-12-02 16:17:58 +0100
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-12-03 13:44:04 +0200
commitffb856322c7518c0ad9c1ed4213e8c38512bc598 (patch)
treef0830b3b3437aa89419055a63b87409e06367533 /android/main.c
parent566bae35fc535d8b8642008fe2802d4038c58bb7 (diff)
downloadbluez-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/main.c')
-rw-r--r--android/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/main.c b/android/main.c
index b9655c556..5210b4bcd 100644
--- a/android/main.c
+++ b/android/main.c
@@ -430,7 +430,7 @@ int main(int argc, char *argv[])
start_sdp_server(0, 0);
ipc_register(HAL_SERVICE_ID_CORE, cmd_handlers,
- sizeof(cmd_handlers)/sizeof(cmd_handlers[0]));
+ G_N_ELEMENTS(cmd_handlers));
DBG("Entering main loop");