mirror of
git://git.code.sf.net/p/xtables-addons/xtables-addons
synced 2025-09-12 23:54:59 +02:00
pknock: only use size-fixated types
Types with variadic size are a no-no.
This commit is contained in:
@@ -296,7 +296,7 @@ static void pknock_print(const void *ip,
|
||||
printf(" ");
|
||||
}
|
||||
if (info->option & IPT_PKNOCK_TIME)
|
||||
printf("time %ld ", info->max_time);
|
||||
printf("time %ld ", (long)info->max_time);
|
||||
if (info->option & IPT_PKNOCK_NAME)
|
||||
printf("name %s ", info->rule_name);
|
||||
if (info->option & IPT_PKNOCK_OPENSECRET)
|
||||
@@ -318,7 +318,7 @@ static void pknock_save(const void *ip, const struct xt_entry_match *match)
|
||||
printf(" ");
|
||||
}
|
||||
if (info->option & IPT_PKNOCK_TIME)
|
||||
printf("--time %ld ", info->max_time);
|
||||
printf("--time %ld ", (long)info->max_time);
|
||||
if (info->option & IPT_PKNOCK_NAME)
|
||||
printf("--name %s ", info->rule_name);
|
||||
if (info->option & IPT_PKNOCK_OPENSECRET)
|
||||
|
Reference in New Issue
Block a user