From c9cd648f115759176d35508e9007dc5520a0dd3f Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Thu, 24 Apr 2003 19:18:23 +0000 Subject: 2003-04-24 Havoc Pennington * configure.in: add --enable-checks * dbus/dbus-message.c (dbus_message_new): reverse name/service arguments * dbus/dbus-connection.c (dbus_connection_preallocate_send): fix to use thread locks. (_dbus_connection_handler_destroyed_locked): move some private functions into proper docs group * dbus/dbus-internals.h: add _dbus_return_if_fail, _dbus_return_val_if_fail Throughout: use dbus_return_if_fail --- bus/connection.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bus/connection.c') diff --git a/bus/connection.c b/bus/connection.c index 14081e2e..146e3769 100644 --- a/bus/connection.c +++ b/bus/connection.c @@ -880,9 +880,9 @@ bus_connection_preallocate_oom_error (DBusConnection *connection) if (preallocated == NULL) return FALSE; - /* d->name may be NULL, but that should be OK */ - message = dbus_message_new (d->name, - DBUS_ERROR_NO_MEMORY); + /* d->name may be NULL, but that is OK */ + message = dbus_message_new (DBUS_ERROR_NO_MEMORY, + d->name); if (message == NULL) { dbus_connection_free_preallocated_send (connection, preallocated); -- cgit