Use !foo instead of foo == FALSE --- src/gatt-dbus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gatt-dbus.c b/src/gatt-dbus.c index 896accf..ac50008 100644 --- a/src/gatt-dbus.c +++ b/src/gatt-dbus.c @@ -450,9 +450,9 @@ static const GDBusMethodTable methods[] = { gboolean gatt_dbus_manager_register(void) { - if (g_dbus_register_interface(btd_get_dbus_connection(), + if (!g_dbus_register_interface(btd_get_dbus_connection(), "/org/bluez", GATT_MGR_IFACE, - methods, NULL, NULL, NULL, NULL) == FALSE) + methods, NULL, NULL, NULL, NULL)) return FALSE; proxy_hash = g_hash_table_new_full(g_direct_hash, g_direct_equal, -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html