Loading lib/inet_pton.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -159,7 +159,7 @@ inet_pton6(const char *src, unsigned char *dst) unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; const char *xdigits, *curtok; const char *xdigits, *curtok; int ch, saw_xdigit; int ch, saw_xdigit; unsigned int val; size_t val; memset((tp = tmp), 0, IN6ADDRSZ); memset((tp = tmp), 0, IN6ADDRSZ); endp = tp + IN6ADDRSZ; endp = tp + IN6ADDRSZ; Loading Loading @@ -218,8 +218,8 @@ inet_pton6(const char *src, unsigned char *dst) * Since some memmove()'s erroneously fail to handle * Since some memmove()'s erroneously fail to handle * overlapping regions, we'll do the shift by hand. * overlapping regions, we'll do the shift by hand. */ */ const long n = tp - colonp; const size_t n = tp - colonp; long i; size_t i; if(tp == endp) if(tp == endp) return (0); return (0); Loading Loading
lib/inet_pton.c +3 −3 Original line number Original line Diff line number Diff line Loading @@ -159,7 +159,7 @@ inet_pton6(const char *src, unsigned char *dst) unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp; const char *xdigits, *curtok; const char *xdigits, *curtok; int ch, saw_xdigit; int ch, saw_xdigit; unsigned int val; size_t val; memset((tp = tmp), 0, IN6ADDRSZ); memset((tp = tmp), 0, IN6ADDRSZ); endp = tp + IN6ADDRSZ; endp = tp + IN6ADDRSZ; Loading Loading @@ -218,8 +218,8 @@ inet_pton6(const char *src, unsigned char *dst) * Since some memmove()'s erroneously fail to handle * Since some memmove()'s erroneously fail to handle * overlapping regions, we'll do the shift by hand. * overlapping regions, we'll do the shift by hand. */ */ const long n = tp - colonp; const size_t n = tp - colonp; long i; size_t i; if(tp == endp) if(tp == endp) return (0); return (0); Loading