From f476beb632c6caeb25635882f5548d8e87836156 Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Fri, 7 Nov 2014 23:14:29 +0000 Subject: [PATCH] fixing some compiler warnings svn path=/icecast/trunk/net/; revision=19282 --- net/resolver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/resolver.c b/net/resolver.c index ec0b00e..8172578 100644 --- a/net/resolver.c +++ b/net/resolver.c @@ -159,7 +159,8 @@ char *resolver_getname(const char *ip, char *buff, int len) thread_mutex_lock(&_resolver_mutex); if (inet_aton (ip, &addr)) { - if ((host=gethostbyaddr (&addr, sizeof (struct in_addr), AF_INET))) + /* casting &addr to const char* as it is recommended on win* */ + if ((host=gethostbyaddr ((const char *)&addr, sizeof (struct in_addr), AF_INET))) { ret = strncpy (buff, host->h_name, len); buff [len-1] = '\0';