From 4c95a9782c65f88e2904c44abeb734a1b00f6353 Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 15 Mar 2003 02:19:02 +0000 Subject: 2003-03-14 Havoc Pennington * dbus/dbus-memory.c: add a "detect buffer overwrites on free" cheesy hack * dbus/dbus-transport-debug.c: rework this a good bit to be less complicated. hopefully still works. * dbus/dbus-server-debug.c (handle_new_client): remove timeout manually * glib/dbus-gmain.c (timeout_handler): don't remove timeout after running it * dbus/dbus-message.c (dbus_message_copy): rename from dbus_message_new_from_message, fix it up to copy all the message fields, add test case * bus/dispatch.c (bus_dispatch_test): add some more test code, not quite passing yet --- bus/bus.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bus/bus.c') diff --git a/bus/bus.c b/bus/bus.c index e376ae4d..b717cacc 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -46,7 +46,7 @@ server_watch_callback (DBusWatch *watch, { BusContext *context = data; - dbus_server_handle_watch (context->server, watch, condition); + dbus_server_handle_watch (context->server, watch, condition); } static dbus_bool_t @@ -64,6 +64,7 @@ remove_server_watch (DBusWatch *watch, bus_loop_remove_watch (watch, server_watch_callback, context); } + static void server_timeout_callback (DBusTimeout *timeout, void *data) @@ -95,7 +96,7 @@ new_connection_callback (DBusServer *server, if (!bus_connections_setup_connection (context->connections, new_connection)) _dbus_verbose ("No memory to setup new connection\n"); - /* on OOM, we won't have ref'd the connection so it will die */ + /* on OOM, we won't have ref'd the connection so it will die. */ } BusContext* -- cgit