summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2007-06-10 19:37:06 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-06-10 19:37:06 +0000
commit8e178969acfbdaabcd1f49b0220ec6cb73c54240 (patch)
tree400bf2350ebbd91435ede625530aeb5062e42ac8 /src/core
parent3a1ef5d9ebbb16104ef811b67b6f8768871b37f9 (diff)
downloadirssi-8e178969acfbdaabcd1f49b0220ec6cb73c54240.zip
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
Diffstat (limited to 'src/core')
-rw-r--r--src/core/network.c6
1 files changed, 0 insertions, 6 deletions
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) {