From ce4fd314c6be9bfee16a172d5ca34e5097d309fc Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Tue, 25 Mar 2003 04:37:08 +0000 Subject: 2003-03-24 Havoc Pennington * dbus/dbus-sysdeps.c (_dbus_set_fd_nonblocking): move to this file * dbus/dbus-errors.c (dbus_set_error, dbus_set_error_const): allow NULL argument for "message" if the error is a well-known one, fill in a generic message in this case. * dbus/dbus-errors.h (DBusResultCode): Kill DBusResultCode in favor of DBusError * bus/test.c (bus_test_flush_bus): add * bus/policy.c (bus_policy_test): test code stub --- glib/test-thread-client.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'glib/test-thread-client.c') diff --git a/glib/test-thread-client.c b/glib/test-thread-client.c index 23ec3f33..0232b860 100644 --- a/glib/test-thread-client.c +++ b/glib/test-thread-client.c @@ -56,7 +56,7 @@ int main (int argc, char *argv[]) { GMainLoop *loop; - DBusResultCode result; + DBusError error; int i; g_thread_init (NULL); @@ -68,10 +68,12 @@ main (int argc, char *argv[]) return 1; } - connection = dbus_connection_open (argv[1], &result); + dbus_error_init (&error); + connection = dbus_connection_open (argv[1], &error); if (connection == NULL) { - g_printerr ("could not open connection\n"); + g_printerr ("could not open connection: %s\n", error.message); + dbus_error_free (&error); return 1; } -- cgit