mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-13 10:20:28 +00:00
Fix Get_Error() usage, take II
This should fix the following compiler warning: resolve.c:113:1: warning: ‘Get_Error’ defined but not used [-Wunused-function] Which can happen, because the logic of commit543f44bf
isn't sufficient: Get_Error() is only used when neither HAVE_WORKING_GETADDRINFO nor HAVE_GETNAMEINFO are set ... Enhances543f44bf
. Closes #241.
This commit is contained in:
parent
619a3f3ff2
commit
7207bef418
@ -108,6 +108,7 @@ Resolve_Name( PROC_STAT *s, const char *Host, void (*cbfunc)(int, short))
|
||||
return false;
|
||||
} /* Resolve_Name */
|
||||
|
||||
#if !defined(HAVE_WORKING_GETADDRINFO) || !defined(HAVE_GETNAMEINFO)
|
||||
#ifdef h_errno
|
||||
static char *
|
||||
Get_Error( int H_Error )
|
||||
@ -126,6 +127,7 @@ Get_Error( int H_Error )
|
||||
return "unknown error";
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
|
||||
|
Loading…
Reference in New Issue
Block a user