From 12393dcd5c61b593a0a90414638f01fc66c50aed Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Mon, 5 Feb 2007 04:10:32 +0000 Subject: [PATCH] compiler warning fix --- ares_getnameinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ares_getnameinfo.c b/ares_getnameinfo.c index 9c48e8f9..5499705b 100644 --- a/ares_getnameinfo.c +++ b/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", (unsigned short)ntohs(port)); + sprintf(tmpbuf, "%u", (unsigned int)ntohs(port)); if (strlen(tmpbuf) < buflen) /* return it if buffer big enough */ strcpy(buf, tmpbuf);