cast for less warnings

git-svn-id: file:///svn/unbound/trunk@122 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards 2007-02-16 21:39:25 +00:00
parent b310215e81
commit bdb948f715

View 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)