{
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
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);
}