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_hbh.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_hbh.c')
-rw-r--r-- | extensions/libip6t_hbh.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/libip6t_hbh.c b/extensions/libip6t_hbh.c index cddd615f..b706f515 100644 --- a/extensions/libip6t_hbh.c +++ b/extensions/libip6t_hbh.c @@ -31,7 +31,7 @@ static const struct option hbh_opts[] = { XT_GETOPT_TABLEEND, }; -static u_int32_t +static uint32_t parse_opts_num(const char *idstr, const char *typestr) { unsigned long int id; @@ -56,7 +56,7 @@ parse_opts_num(const char *idstr, const char *typestr) } static int -parse_options(const char *optsstr, u_int16_t *opts) +parse_options(const char *optsstr, uint16_t *opts) { char *buffer, *cp, *next, *range; unsigned int i; @@ -157,7 +157,7 @@ static int hbh_parse(int c, char **argv, int invert, unsigned int *flags, } static void -print_options(unsigned int optsnr, u_int16_t *optsp) +print_options(unsigned int optsnr, uint16_t *optsp) { unsigned int i; @@ -183,7 +183,7 @@ static void hbh_print(const void *ip, const struct xt_entry_match *match, printf(" "); } if (optinfo->flags & IP6T_OPTS_OPTS) printf("opts "); - print_options(optinfo->optsnr, (u_int16_t *)optinfo->opts); + print_options(optinfo->optsnr, (uint16_t *)optinfo->opts); if (optinfo->flags & IP6T_OPTS_NSTRICT) printf("not-strict "); if (optinfo->invflags & ~IP6T_OPTS_INV_MASK) printf("Unknown invflags: 0x%X ", @@ -202,7 +202,7 @@ static void hbh_save(const void *ip, const struct xt_entry_match *match) if (optinfo->flags & IP6T_OPTS_OPTS) printf("--hbh-opts "); - print_options(optinfo->optsnr, (u_int16_t *)optinfo->opts); + print_options(optinfo->optsnr, (uint16_t *)optinfo->opts); if (optinfo->flags & IP6T_OPTS_NSTRICT) printf("--hbh-not-strict "); } |