aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-10-14 02:35:39 +0000
committerYang Tse <yangsita@gmail.com>2008-10-14 02:35:39 +0000
commitad61b58036bf2b64916b4a66f46f393c68da872c (patch)
tree6b778af2ad0999680488dd07dbeb8c831ab3a85f /lib/inet_pton.c
parentb7722e7037d87e4afeded8a7317db25875002bc0 (diff)
fix compiler warning
Diffstat (limited to 'lib/inet_pton.c')
-rw-r--r--lib/inet_pton.c4
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];