From 8e178969acfbdaabcd1f49b0220ec6cb73c54240 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Sun, 10 Jun 2007 19:37:06 +0000 Subject: Removed special error==1 handling from net_gethosterror(). It wasn't used anymore, and even when it originally was used it was wrong. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4551 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/core/network.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/core') diff --git a/src/core/network.c b/src/core/network.c index a19a563c..bf7fbb97 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -590,12 +590,6 @@ const char *net_gethosterror(int error) #ifdef HAVE_IPV6 g_return_val_if_fail(error != 0, NULL); - if (error == 1) { - /* getnameinfo() failed .. - FIXME: does strerror return the right error message? */ - return g_strerror(errno); - } - return gai_strerror(error); #else switch (error) { -- cgit v1.2.3