diff options
author | Yang Tse <yangsita@gmail.com> | 2008-10-14 02:35:39 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-10-14 02:35:39 +0000 |
commit | ad61b58036bf2b64916b4a66f46f393c68da872c (patch) | |
tree | 6b778af2ad0999680488dd07dbeb8c831ab3a85f /lib/inet_pton.c | |
parent | b7722e7037d87e4afeded8a7317db25875002bc0 (diff) |
fix compiler warning
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r-- | lib/inet_pton.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]; |