From 7ac405297ec38449b30e3b05fd6bf2082fd3d803 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 7 Jan 2011 12:34:04 +0100 Subject: src: use C99/POSIX types "u_int" was a non-standardized extension predating C99 on some platforms. Signed-off-by: Jan Engelhardt --- extensions/libipt_NETMAP.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/libipt_NETMAP.c') diff --git a/extensions/libipt_NETMAP.c b/extensions/libipt_NETMAP.c index 09262baa..23731af7 100644 --- a/extensions/libipt_NETMAP.c +++ b/extensions/libipt_NETMAP.c @@ -25,10 +25,10 @@ static void NETMAP_help(void) NETMAP_opts[0].name); } -static u_int32_t +static uint32_t bits2netmask(int bits) { - u_int32_t netmask, bm; + uint32_t netmask, bm; if (bits >= 32 || bits < 0) return(~0); @@ -38,9 +38,9 @@ bits2netmask(int bits) } static int -netmask2bits(u_int32_t netmask) +netmask2bits(uint32_t netmask) { - u_int32_t bm; + uint32_t bm; int bits; netmask = ntohl(netmask); @@ -66,7 +66,7 @@ parse_to(char *arg, struct nf_nat_range *range) { char *slash; const struct in_addr *ip; - u_int32_t netmask; + uint32_t netmask; unsigned int bits; range->flags |= IP_NAT_RANGE_MAP_IPS; -- cgit v1.2.3