Commit Diff
Diff:
d9f81ac66942000861d46cd33708585a729b1207
7ed22d0b22dc1ed624c3931e1cff9e21f4156bd9
Commit:
7ed22d0b22dc1ed624c3931e1cff9e21f4156bd9
Tree:
3594b4d3ede6d51b17f446bc775a900b2e796089
Author:
Alexander Barton <alex@barton.de>
Committer:
Alexander Barton <alex@barton.de>
Date:
Mon Jan 29 22:34:40 2018 UTC
Message:
Fix compiler warning in ForwardLookup() When compiling without "working getaddrinfo()", the "af" parameter of ForwardLookup() is unused by that function. Mark it as such! This prevents the following compiler warning: resolve.c:235:56: warning: unused parameter ‘af’ [-Wunused-parameter]
blob - a8a163f0cf786c73ef34173ed3c3b90059e3fdd5
blob + 109d8b6c5491aaa69a3a0f8352b7fbdc3d872c8a
--- src/ngircd/resolve.c
+++ src/ngircd/resolve.c
@@ -232,7 +232,11 @@ ReverseLookup(const ng_ipaddr_t *IpAddr, char *resbuf,
* @return true if lookup successful, false if domain name not found
*/
static bool
+#ifdef HAVE_WORKING_GETADDRINFO
ForwardLookup(const char *hostname, array *IpAddr, int af)
+#else
+ForwardLookup(const char *hostname, array *IpAddr, UNUSED int af)
+#endif
{
ng_ipaddr_t addr;
IRCNow