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_mh.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_mh.c')
-rw-r--r-- | extensions/libip6t_mh.c | 10 |
1 files changed, 5 insertions, 5 deletions
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 ? "!" : ""; |