mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
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
This commit is contained in:
parent
3a1ef5d9eb
commit
8e178969ac
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user