projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
feecf63
)
inet_pton: warnings: use size_t to store pointer deltas
author
Daniel Stenberg
<daniel@haxx.se>
Tue, 8 Jun 2010 21:09:42 +0000
(23:09 +0200)
committer
Daniel Stenberg
<daniel@haxx.se>
Tue, 8 Jun 2010 21:09:42 +0000
(23:09 +0200)
lib/inet_pton.c
patch
|
blob
|
history
diff --git
a/lib/inet_pton.c
b/lib/inet_pton.c
index 9189ce6756e56aa8db807b99b5567a6ab1ddf8ee..db4f39307bca3c2d4055743ad0dbbf5959918390 100644
(file)
--- a/
lib/inet_pton.c
+++ b/
lib/inet_pton.c
@@
-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 in
t 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);