Browse Source

fixed spaces in print functions and loops for iptables-save

pull/9/head
Stefan Schwarz 8 years ago
parent
commit
000887ce9d
  1. 4
      src/libxt_TS3INIT_SET_COOKIE.c
  2. 2
      src/libxt_ts3init.c
  3. 3
      src/libxt_ts3init_get_cookie.c
  4. 4
      src/libxt_ts3init_get_puzzle.c

4
src/libxt_TS3INIT_SET_COOKIE.c

@ -89,7 +89,7 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar @@ -89,7 +89,7 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar
}
if (info->specific_options & TARGET_SET_COOKIE_RANDOM_SEED_FROM_ARGUMENT)
{
printf(" --random-seed");
printf(" --random-seed ");
for (i = 0; i < RANDOM_SEED_LEN; i++)
{
printf("%02X", info->random_seed[i]);
@ -104,7 +104,7 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar @@ -104,7 +104,7 @@ static void ts3init_set_cookie_tg_save(const void *ip, const struct xt_entry_tar
static void ts3init_set_cookie_tg_print(const void *ip, const struct xt_entry_target *target,
int numeric)
{
printf(" -j TS3INIT_SET_COOKIE ");
printf(" -j TS3INIT_SET_COOKIE");
ts3init_set_cookie_tg_save(ip, target);
}

2
src/libxt_ts3init.c

@ -98,7 +98,7 @@ static void ts3init_save(const void *ip, const struct xt_entry_match *match) @@ -98,7 +98,7 @@ static void ts3init_save(const void *ip, const struct xt_entry_match *match)
static void ts3init_print(const void *ip, const struct xt_entry_match *match,
int numeric)
{
printf(" -m ts3init ");
printf(" -m ts3init");
ts3init_save(ip, match);
}

3
src/libxt_ts3init_get_cookie.c

@ -90,7 +90,7 @@ static void ts3init_get_cookie_save(const void *ip, const struct xt_entry_match @@ -90,7 +90,7 @@ static void ts3init_get_cookie_save(const void *ip, const struct xt_entry_match
static void ts3init_get_cookie_print(const void *ip, const struct xt_entry_match *match,
int numeric)
{
printf(" -m ts3init_get_cookie ");
printf(" -m ts3init_get_cookie");
ts3init_get_cookie_save(ip, match);
}
@ -129,4 +129,3 @@ static __attribute__((constructor)) void ts3init_mt_ldr(void) @@ -129,4 +129,3 @@ static __attribute__((constructor)) void ts3init_mt_ldr(void)
{
xtables_register_matches(ts3init_mt_reg, ARRAY_SIZE(ts3init_mt_reg));
}

4
src/libxt_ts3init_get_puzzle.c

@ -111,7 +111,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match @@ -111,7 +111,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
}
if (info->specific_options & CHK_GET_PUZZLE_RANDOM_SEED_FROM_ARGUMENT)
{
printf(" --random-seed");
printf(" --random-seed ");
for (i = 0; i < RANDOM_SEED_LEN; i++)
{
printf("%02X", info->random_seed[i]);
@ -126,7 +126,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match @@ -126,7 +126,7 @@ static void ts3init_get_puzzle_save(const void *ip, const struct xt_entry_match
static void ts3init_get_puzzle_print(const void *ip, const struct xt_entry_match *match,
int numeric)
{
printf(" -m ts3init_get_puzzle ");
printf(" -m ts3init_get_puzzle");
ts3init_get_puzzle_save(ip, match);
}

Loading…
Cancel
Save