fix compiler warning

This commit is contained in:
Yang Tse
2008-10-14 02:35:39 +00:00
parent b7722e7037
commit ad61b58036
3 changed files with 16 additions and 9 deletions

View File

@@ -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];