+/* $Id$ */
+
/* Copyright 2005 by Dominick Meglio
*
* Permission to use, copy, modify, and distribute this
void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa, socklen_t salen,
int flags, ares_nameinfo_callback callback, void *arg)
{
- struct sockaddr_in *addr;
- struct sockaddr_in6 *addr6;
+ struct sockaddr_in *addr = NULL;
+ struct sockaddr_in6 *addr6 = NULL;
struct nameinfo_query *niquery;
/* Verify the buffer size */
}
#else
sprintf(&tmpbuf[1], "%u", addr6->sin6_scope_id);
+ (void) flags;
#endif
strcat(buf, tmpbuf);
return buf;