Skip to content
This repository has been archived by the owner on May 4, 2018. It is now read-only.

Commit

Permalink
uv-common: fix 'initialization discards qualifiers from pointer targe…
Browse files Browse the repository at this point in the history
…t type'
  • Loading branch information
bnoordhuis committed Jul 19, 2011
1 parent 3207f8a commit 7cc5279
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/uv-common.c
Expand Up @@ -114,13 +114,13 @@ struct sockaddr_in6 uv_ip6_addr(const char* ip, int port) {


int uv_ip4_name(struct sockaddr_in* src, char* dst, size_t size) {
char* d = ares_inet_ntop(AF_INET, &src->sin_addr, dst, size);
const char* d = ares_inet_ntop(AF_INET, &src->sin_addr, dst, size);
return d != dst;
}


int uv_ip6_name(struct sockaddr_in6* src, char* dst, size_t size) {
char* d = ares_inet_ntop(AF_INET6, &src->sin6_addr, dst, size);
const char* d = ares_inet_ntop(AF_INET6, &src->sin6_addr, dst, size);
return d != dst;
}

Expand Down

0 comments on commit 7cc5279

Please sign in to comment.