mirror of
https://github.com/osmarks/ngircd.git
synced 2025-11-22 16:24:49 +00:00
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]
This commit is contained in:
@@ -232,7 +232,11 @@ ReverseLookup(const ng_ipaddr_t *IpAddr, char *resbuf, size_t reslen)
|
|||||||
* @return true if lookup successful, false if domain name not found
|
* @return true if lookup successful, false if domain name not found
|
||||||
*/
|
*/
|
||||||
static bool
|
static bool
|
||||||
|
#ifdef HAVE_WORKING_GETADDRINFO
|
||||||
ForwardLookup(const char *hostname, array *IpAddr, int af)
|
ForwardLookup(const char *hostname, array *IpAddr, int af)
|
||||||
|
#else
|
||||||
|
ForwardLookup(const char *hostname, array *IpAddr, UNUSED int af)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
ng_ipaddr_t addr;
|
ng_ipaddr_t addr;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user