From a4a103be6b3ab20dba82afef0c2b0f086eb3b436 Mon Sep 17 00:00:00 2001 From: Benjamin Franzke Date: Tue, 12 Mar 2013 08:13:57 +0100 Subject: util: Fix error string if connection failed --- util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.c b/util.c index 2d39a82..cedcc72 100644 --- a/util.c +++ b/util.c @@ -205,7 +205,7 @@ connect_to_host(int socktype, const char *host, const char *port) } freeaddrinfo(result); if (rp == NULL) { - fprintf(stderr, "Failed to bind: %s\n", strerror(errno)); + fprintf(stderr, "Failed to connect: %s\n", strerror(errno)); return -1; } -- cgit