aboutsummaryrefslogtreecommitdiff
path: root/lib/inet_pton.c
diff options
context:
space:
mode:
authorDan Fandrich <dan@coneharvesters.com>2005-12-08 22:59:58 +0000
committerDan Fandrich <dan@coneharvesters.com>2005-12-08 22:59:58 +0000
commitdf03d5a8b21a66472420116f2b3e76ba1c268a82 (patch)
treef8a3034112394443860cfbcf0e8d5f2c23a81c55 /lib/inet_pton.c
parent6a0ed81e6795f773dbb876ec83d5c22d9504077f (diff)
Replaced nonstandard u_char and u_int types
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 35eef49d0..c290330cb 100644
--- a/lib/inet_pton.c
+++ b/lib/inet_pton.c
@@ -114,7 +114,7 @@ inet_pton4(const char *src, unsigned char *dst)
const char *pch;
if ((pch = strchr(digits, ch)) != NULL) {
- u_int val = *tp * 10 + (u_int)(pch - digits);
+ unsigned int val = *tp * 10 + (unsigned int)(pch - digits);
if (val > 255)
return (0);
@@ -161,7 +161,7 @@ inet_pton6(const char *src, unsigned char *dst)
unsigned char tmp[IN6ADDRSZ], *tp, *endp, *colonp;
const char *xdigits, *curtok;
int ch, saw_xdigit;
- u_int val;
+ unsigned int val;
memset((tp = tmp), 0, IN6ADDRSZ);
endp = tp + IN6ADDRSZ;