From: Claudio Takahasi Date: Mon, 24 Mar 2014 14:06:41 +0000 (-0300) Subject: tools: Fix coding style checking boolean X-Git-Tag: android-x86-4.4-r3~4536 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=958f256524b6b3ef0ff4f54edaaecc4e75dc1565;p=android-x86%2Fexternal-bluetooth-bluez.git tools: Fix coding style checking boolean This patch fixes tools/gatt-service.c coding style, using !foo instead of foo == FALSE. --- diff --git a/tools/gatt-service.c b/tools/gatt-service.c index 1e369d7ef..624b835f8 100644 --- a/tools/gatt-service.c +++ b/tools/gatt-service.c @@ -205,9 +205,9 @@ static char *register_service(const char *uuid) char *path; path = g_strdup_printf("/service%d", id++); - if (g_dbus_register_interface(connection, path, GATT_SERVICE_IFACE, + if (!g_dbus_register_interface(connection, path, GATT_SERVICE_IFACE, NULL, NULL, service_properties, - g_strdup(uuid), g_free) == FALSE) { + g_strdup(uuid), g_free)) { printf("Couldn't register service interface\n"); g_free(path); return NULL; @@ -285,7 +285,7 @@ static void register_external_service(gpointer a, gpointer b) dbus_message_iter_close_container(&iter, &dict); - if (g_dbus_send_message_with_reply(conn, msg, &call, -1) == FALSE) { + if (!g_dbus_send_message_with_reply(conn, msg, &call, -1)) { dbus_message_unref(msg); return; }