diff options
author | Yang Tse <yangsita@gmail.com> | 2007-02-02 17:16:06 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2007-02-02 17:16:06 +0000 |
commit | c26ec47e907e3707bdc94f116c0fcb2ba10fdb8c (patch) | |
tree | adb1b68a0969dcad53533ce38b0477f650ca30f3 /ares/ares_getnameinfo.c | |
parent | 8337a375dd5bbe6b1dab4b711a5fdbc1664cb298 (diff) |
compiler warning fix
Diffstat (limited to 'ares/ares_getnameinfo.c')
-rw-r--r-- | ares/ares_getnameinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ares/ares_getnameinfo.c b/ares/ares_getnameinfo.c index 117c6c9a4..9c48e8f98 100644 --- a/ares/ares_getnameinfo.c +++ b/ares/ares_getnameinfo.c @@ -305,7 +305,7 @@ static char *lookup_service(unsigned short port, int flags, strcpy(tmpbuf, sep->s_name); else /* get port as a string */ - sprintf(tmpbuf, "%u", ntohs(port)); + sprintf(tmpbuf, "%u", (unsigned short)ntohs(port)); if (strlen(tmpbuf) < buflen) /* return it if buffer big enough */ strcpy(buf, tmpbuf); |