mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-23 02:07:37 +00:00
Only compile in Get_Error() if really needed
This fixes "resolve.c:150: warning: ‘Get_Error’ defined but not used".
This commit is contained in:
@@ -144,8 +144,8 @@ Resolve_Init(RES_STAT *s)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifndef WANT_IPV6
|
#if !defined(HAVE_GETADDRINFO) || !defined(HAVE_GETNAMEINFO)
|
||||||
#ifdef h_errno
|
#if !defined(WANT_IPV6) && defined(h_errno)
|
||||||
static char *
|
static char *
|
||||||
Get_Error( int H_Error )
|
Get_Error( int H_Error )
|
||||||
{
|
{
|
||||||
@@ -162,8 +162,8 @@ Get_Error( int H_Error )
|
|||||||
}
|
}
|
||||||
return "unknown error";
|
return "unknown error";
|
||||||
}
|
}
|
||||||
#endif /* h_errno */
|
#endif
|
||||||
#endif /* WANT_IPV6 */
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
|
/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
|
||||||
|
|||||||
Reference in New Issue
Block a user