diff options
author | Jan Engelhardt <jengelh@medozas.de> | 2011-01-07 12:34:04 +0100 |
---|---|---|
committer | Jan Engelhardt <jengelh@medozas.de> | 2011-01-08 01:58:45 +0100 |
commit | 7ac405297ec38449b30e3b05fd6bf2082fd3d803 (patch) | |
tree | 5231547e7f2ce87b368135d1dd4720431e94e088 /extensions/libip6t_ipv6header.c | |
parent | 4a1d810bb52aa5d5c450f7adcde5145d40261b54 (diff) |
src: use C99/POSIX types
"u_int" was a non-standardized extension predating C99 on some platforms.
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'extensions/libip6t_ipv6header.c')
-rw-r--r-- | extensions/libip6t_ipv6header.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/extensions/libip6t_ipv6header.c b/extensions/libip6t_ipv6header.c index d6ce248c..d4d64e09 100644 --- a/extensions/libip6t_ipv6header.c +++ b/extensions/libip6t_ipv6header.c @@ -26,12 +26,12 @@ on whether they contain certain headers */ * /etc/protocols */ struct pprot { char *name; - u_int8_t num; + uint8_t num; }; struct numflag { - u_int8_t proto; - u_int8_t flag; + uint8_t proto; + uint8_t flag; }; static const struct pprot chain_protos[] = { @@ -68,7 +68,7 @@ static const struct numflag chain_flags[] = { }; static char * -proto_to_name(u_int8_t proto, int nolookup) +proto_to_name(uint8_t proto, int nolookup) { unsigned int i; @@ -85,7 +85,7 @@ proto_to_name(u_int8_t proto, int nolookup) return NULL; } -static u_int16_t +static uint16_t name_to_proto(const char *s) { unsigned int proto=0; @@ -217,7 +217,7 @@ static void ipv6header_check(unsigned int flags) } static void -print_header(u_int8_t flags){ +print_header(uint8_t flags){ int have_flag = 0; while (flags) { |