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/libip6t_mh.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'extensions/libip6t_mh.c') diff --git a/extensions/libip6t_mh.c b/extensions/libip6t_mh.c index 54dd8c68..16cc9ac9 100644 --- a/extensions/libip6t_mh.c +++ b/extensions/libip6t_mh.c @@ -22,7 +22,7 @@ struct mh_name { const char *name; - u_int8_t type; + uint8_t type; }; static const struct mh_name mh_names[] = { @@ -100,7 +100,7 @@ static unsigned int name_to_type(const char *name) } } -static void parse_mh_types(const char *mhtype, u_int8_t *types) +static void parse_mh_types(const char *mhtype, uint8_t *types) { char *buffer; char *cp; @@ -148,7 +148,7 @@ static int mh_parse(int c, char **argv, int invert, unsigned int *flags, return 1; } -static const char *type_to_name(u_int8_t type) +static const char *type_to_name(uint8_t type) { unsigned int i; @@ -159,7 +159,7 @@ static const char *type_to_name(u_int8_t type) return NULL; } -static void print_type(u_int8_t type, int numeric) +static void print_type(uint8_t type, int numeric) { const char *name; if (numeric || !(name = type_to_name(type))) @@ -168,7 +168,7 @@ static void print_type(u_int8_t type, int numeric) printf("%s", name); } -static void print_types(u_int8_t min, u_int8_t max, int invert, int numeric) +static void print_types(uint8_t min, uint8_t max, int invert, int numeric) { const char *inv = invert ? "!" : ""; -- cgit v1.2.3