From df03d5a8b21a66472420116f2b3e76ba1c268a82 Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Thu, 8 Dec 2005 22:59:58 +0000 Subject: Replaced nonstandard u_char and u_int types --- lib/inet_pton.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/inet_pton.c') 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; -- cgit v1.2.3