[systemd-commits] src/dbus.c
Lennart Poettering
lennart at kemper.freedesktop.org
Wed Nov 24 16:37:44 PST 2010
src/dbus.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit d83685ac1b1c33cf2132bca6374e65ed2de276a7
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Nov 25 01:37:21 2010 +0100
dbus: use the right data slot allocator
Thanks to 'trapni' on IRC for tracking this down.
diff --git a/src/dbus.c b/src/dbus.c
index 66076f0..48051f2 100644
--- a/src/dbus.c
+++ b/src/dbus.c
@@ -998,7 +998,7 @@ int bus_init(Manager *m) {
}
if (m->subscribed_data_slot < 0)
- if (!dbus_pending_call_allocate_data_slot(&m->subscribed_data_slot)) {
+ if (!dbus_connection_allocate_data_slot(&m->subscribed_data_slot)) {
log_error("Not enough memory");
return -ENOMEM;
}
@@ -1110,7 +1110,7 @@ void bus_done(Manager *m) {
dbus_pending_call_free_data_slot(&m->name_data_slot);
if (m->subscribed_data_slot >= 0)
- dbus_pending_call_free_data_slot(&m->subscribed_data_slot);
+ dbus_connection_free_data_slot(&m->subscribed_data_slot);
}
static void query_pid_pending_cb(DBusPendingCall *pending, void *userdata) {
More information about the systemd-commits
mailing list