From 2d3a04ef39174697b2aaa939fb60bb3ea3cc0835 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 21 Oct 2013 22:54:50 +0300 Subject: [PATCH] android: Minor coding style cleanups --- android/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/android/main.c b/android/main.c index 7dafb2957..fe4f9ded5 100644 --- a/android/main.c +++ b/android/main.c @@ -63,7 +63,7 @@ static GIOChannel *hal_notif_io = NULL; static volatile sig_atomic_t __terminated = 0; -static bool services[HAL_SERVICE_ID_MAX + 1] = {false}; +static bool services[HAL_SERVICE_ID_MAX + 1] = { false }; static void service_register(void *buf, uint16_t len) { @@ -117,10 +117,10 @@ static void handle_service_core(uint8_t opcode, void *buf, uint16_t len) static gboolean cmd_watch_cb(GIOChannel *io, GIOCondition cond, gpointer user_data) { - int fd; - ssize_t ret; char buf[BLUEZ_HAL_MTU]; struct hal_msg_hdr *msg = (void *) buf; + ssize_t ret; + int fd; if (cond & (G_IO_NVAL | G_IO_ERR | G_IO_HUP)) { info("HAL command socket closed, terminating"); -- 2.47.3