From: Johan Hedberg <johan.hedberg@intel.com> Date: Mon, 21 Oct 2013 19:54:50 +0000 (+0300) Subject: android: Minor coding style cleanups X-Git-Tag: android-x86-4.4-r3~7270 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=2d3a04ef39174697b2aaa939fb60bb3ea3cc0835;p=android-x86%2Fexternal-bluetooth-bluez.git android: Minor coding style cleanups --- 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");