]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
cast for less warnings
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Feb 2007 21:39:25 +0000 (21:39 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 16 Feb 2007 21:39:25 +0000 (21:39 +0000)
git-svn-id: file:///svn/unbound/trunk@122 be551aaa-1e26-0410-a405-d3ace91eadb9

services/listen_dnsport.c

index f308ee51788731cfb991410d0c18e1a3cfb98cfb..78dfc0777a869a2e3972385da9e3d13dc3110caa 100644 (file)
@@ -208,7 +208,7 @@ make_sock(int stype, const char* ifname, const char* port,
        if((r=getaddrinfo(ifname, port, hints, &res)) != 0 || !res) {
                log_err("node %s:%s getaddrinfo: %s %s", 
                        ifname?ifname:"default", port, gai_strerror(r),
-                       r==EAI_SYSTEM?strerror(errno):"");
+                       r==EAI_SYSTEM?(char*)strerror(errno):"");
                return -1;
        }
        if(stype == SOCK_DGRAM)