[at-spi2-core] Add missing return values
- From: Frédéric Crozat <fcrozat src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [at-spi2-core] Add missing return values
- Date: Tue, 1 Feb 2011 17:11:26 +0000 (UTC)
commit cfac92cfd9bfb169a45cc351451b63939b459243
Author: Frederic Crozat <fcrozat novell com>
Date: Tue Feb 1 17:06:26 2011 +0100
Add missing return values
https://bugzilla.gnome.org/show_bug.cgi?id=641164
atspi/atspi-misc.c | 1 +
registryd/registry.c | 11 ++++++-----
2 files changed, 7 insertions(+), 5 deletions(-)
---
diff --git a/atspi/atspi-misc.c b/atspi/atspi-misc.c
index dd089b6..9c4bf42 100644
--- a/atspi/atspi-misc.c
+++ b/atspi/atspi-misc.c
@@ -646,6 +646,7 @@ handle_add_accessible (DBusConnection *bus, DBusMessage *message, void *user_dat
dbus_message_iter_init (message, &iter);
add_accessible_from_iter (&iter);
+ return DBUS_HANDLER_RESULT_HANDLED;
}
typedef struct
diff --git a/registryd/registry.c b/registryd/registry.c
index 282031f..f40b2f4 100644
--- a/registryd/registry.c
+++ b/registryd/registry.c
@@ -349,7 +349,7 @@ signal_filter (DBusConnection *bus, DBusMessage *message, void *user_data)
const char *member = dbus_message_get_member (message);
if (type != DBUS_MESSAGE_TYPE_SIGNAL)
- return;
+ return res;
if (!g_strcmp0(iface, DBUS_INTERFACE_DBUS) &&
!g_strcmp0(member, "NameOwnerChanged"))
@@ -840,18 +840,18 @@ impl_register_event (DBusConnection *bus, DBusMessage *message, void *user_data)
if (!dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &orig_name,
DBUS_TYPE_INVALID))
- return;
+ return NULL;
name = ensure_proper_format (orig_name);
evdata = (event_data *) g_malloc (sizeof (*evdata));
if (!evdata)
- return;
+ return NULL;
data = g_strsplit (name, ":", 3);
if (!data)
{
g_free (evdata);
- return;
+ return NULL;
}
if (!data [0])
data [1] = NULL;
@@ -890,7 +890,7 @@ impl_deregister_event (DBusConnection *bus, DBusMessage *message, void *user_dat
if (!dbus_message_get_args (message, NULL, DBUS_TYPE_STRING, &orig_name,
DBUS_TYPE_INVALID))
- return;
+ return NULL;
name = ensure_proper_format (orig_name);
remove_events (registry, sender, name);
@@ -1313,6 +1313,7 @@ handle_method_cache (DBusConnection *bus, DBusMessage *message, void *user_data)
dbus_connection_send (bus, reply, NULL);
dbus_message_unref (reply);
}
+ return result;
}
static DBusHandlerResult
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]