Module: ngircd.git Branch: master Commit: 628c6c962b1054de4c27304f53c4ac7c50c79a11 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=628c6...
Author: Alexander Barton alex@barton.de Date: Fri Apr 9 20:06:44 2010 +0200
Only compile in Get_Error() if really needed
This fixes "resolve.c:150: warning: ‘Get_Error’ defined but not used".
---
src/ngircd/resolve.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/ngircd/resolve.c b/src/ngircd/resolve.c index 37d1c51..bccf518 100644 --- a/src/ngircd/resolve.c +++ b/src/ngircd/resolve.c @@ -144,8 +144,8 @@ Resolve_Init(RES_STAT *s) }
-#ifndef WANT_IPV6 -#ifdef h_errno +#if !defined(HAVE_GETADDRINFO) || !defined(HAVE_GETNAMEINFO) +#if !defined(WANT_IPV6) && defined(h_errno) static char * Get_Error( int H_Error ) { @@ -162,8 +162,8 @@ Get_Error( int H_Error ) } return "unknown error"; } -#endif /* h_errno */ -#endif /* WANT_IPV6 */ +#endif +#endif
/* Do "IDENT" (aka "AUTH") lookup and append result to resolved_addr array */
ngircd-commits@lists.barton.de