mirror of
https://github.com/curl/curl.git
synced 2026-05-18 14:46:20 +03:00
inet_pton: warnings: use size_t to store pointer deltas
This commit is contained in:
parent
feecf63a96
commit
bb60fe0c1a
1 changed files with 3 additions and 3 deletions
|
|
@ -159,7 +159,7 @@ inet_pton6(const char *src, unsigned char *dst)
|
|||
unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
|
||||
const char *xdigits, *curtok;
|
||||
int ch, saw_xdigit;
|
||||
unsigned int val;
|
||||
size_t val;
|
||||
|
||||
memset((tp = tmp), 0, IN6ADDRSZ);
|
||||
endp = tp + IN6ADDRSZ;
|
||||
|
|
@ -218,8 +218,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 long n = tp - colonp;
|
||||
long i;
|
||||
const size_t n = tp - colonp;
|
||||
size_t i;
|
||||
|
||||
if(tp == endp)
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue