{
char hostname[256];
- if (0 == getnameinfo (cache->sa, cache->salen, hostname, 255, NULL, 0, 0))
+ if (0 == getnameinfo (cache->sa,
+ cache->salen,
+ hostname,
+ sizeof(hostname),
+ NULL, 0, 0))
cache->addr = GNUNET_strdup (hostname);
}
#endif
AF_INET) ? "IPv4" : ((domain ==
AF_INET6) ? "IPv6" : "any"),
gai_strerror (s));
- if ((s == EAI_BADFLAGS) || (s == EAI_MEMORY) || (s == EAI_SYSTEM))
+ if ((s == EAI_BADFLAGS) || (s == EAI_MEMORY) ||
+#ifndef MINGW
+ (s == EAI_SYSTEM)
+#else
+ // FIXME NILS
+ 1
+#endif
+ )
return GNUNET_NO; /* other function may still succeed */
return GNUNET_SYSERR;
}
* Handle GET-message.
*
* @param cls closure
- * @param server the server handling the message
* @param client identification of the client
* @param message the actual message
*/
static void
handle_get (void *cls,
- struct GNUNET_SERVER_Handle *server,
struct GNUNET_SERVER_Client *client,
const struct GNUNET_MessageHeader *message)
{
/**
- * Process statistics requests.
+ * Process resolver requests.
*
* @param cls closure
* @param sched scheduler to use
run (void *cls,
struct GNUNET_SCHEDULER_Handle *sched,
struct GNUNET_SERVER_Handle *server,
- struct GNUNET_CONFIGURATION_Handle *cfg)
+ const struct GNUNET_CONFIGURATION_Handle *cfg)
{
GNUNET_SERVER_add_handlers (server, handlers);
}