[PATCH] dbus control interface: use dbus_connection_unref
Dan Williams
dcbw
Mon Dec 4 20:42:41 PST 2006
dbus_connection_close() is deprecated and not what we want here;
instead, unref the connection and be a good citizen.
Dan
--- ctrl_iface_dbus.c.unref-not-close 2006-12-04 22:53:28.000000000 -0500
+++ ctrl_iface_dbus.c 2006-12-04 23:17:38.000000000 -0500
@@ -852,7 +852,7 @@
NULL, NULL, NULL);
dbus_connection_set_timeout_functions(iface->con, NULL, NULL,
NULL, NULL, NULL);
- dbus_connection_close(iface->con);
+ dbus_connection_unref(iface->con);
}
memset(iface, 0, sizeof(struct ctrl_iface_dbus_priv));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctrl-iface-dbus-unref-not-close.patch
Type: text/x-patch
Size: 418 bytes
Desc: not available
Url : http://lists.shmoo.com/pipermail/hostap/attachments/20061204/df78ceac/attachment.bin
More information about the Hostap
mailing list