From 435c7af9b605c3ffc8641142b6d7add18bf7080b Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Tue, 30 May 2006 15:34:10 +0000 Subject: * dbus/dbus-sysdeps.c: Make tcp socket connection error somewhat more clear: "Failed to connect to socket : " instead of "Failed to connect to socket : :" * dbus/dbus-transport-unix.c: Fix crash when no host option is given for a tcp transport. --- dbus/dbus-sysdeps.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dbus/dbus-sysdeps.c') diff --git a/dbus/dbus-sysdeps.c b/dbus/dbus-sysdeps.c index e8bd9b71..e935dfa9 100644 --- a/dbus/dbus-sysdeps.c +++ b/dbus/dbus-sysdeps.c @@ -678,8 +678,8 @@ _dbus_connect_tcp_socket (const char *host, { dbus_set_error (error, _dbus_error_from_errno (errno), - "Failed to connect to socket %s: %s:%d", - host, _dbus_strerror (errno), port); + "Failed to connect to socket %s:%d %s", + host, port, _dbus_strerror (errno)); close (fd); fd = -1; -- cgit