From ad61b58036bf2b64916b4a66f46f393c68da872c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Tue, 14 Oct 2008 02:35:39 +0000 Subject: fix compiler warning --- lib/inet_pton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/inet_pton.c') diff --git a/lib/inet_pton.c b/lib/inet_pton.c index 26a13724f..285284fd1 100644 --- a/lib/inet_pton.c +++ b/lib/inet_pton.c @@ -221,8 +221,8 @@ inet_pton6(const char *src, unsigned char *dst) * Since some memmove()'s erroneously fail to handle * overlapping regions, we'll do the shift by hand. */ - const int n = tp - colonp; - int i; + const long n = tp - colonp; + long i; for (i = 1; i <= n; i++) { endp[- i] = colonp[n - i]; -- cgit v1.2.3