summaryrefslogtreecommitdiffstats
path: root/iptables.c
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-02-01 22:32:56 +0100
committerPablo Neira Ayuso <pablo@netfilter.org>2009-02-01 22:32:56 +0100
commitc6132022905b10ac70223e8116f3903ea0039e75 (patch)
tree35b5545abcf21edb3e6d5e69342047b828634ba3 /iptables.c
parent43270796c709584b67343c333adaf28faea56265 (diff)
libxtables: prefix names and order it #2
This change affects: load_xtables_ko -> xtables_load_ko modprobe_program -> xtables_modprobe_program Now uses bool for the "quiet" flag. Signed-off-by: Jan Engelhardt <jengelh@medozas.de> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables.c')
-rw-r--r--iptables.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/iptables.c b/iptables.c
index 0b7edd8d..61e7aaba 100644
--- a/iptables.c
+++ b/iptables.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <netdb.h>
#include <errno.h>
+#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
@@ -1786,7 +1787,7 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle
break;
case 'M':
- modprobe_program = optarg;
+ xtables_modprobe_program = optarg;
break;
case 'c':
@@ -1996,7 +1997,7 @@ int do_command(int argc, char *argv[], char **table, struct iptc_handle **handle
*handle = iptc_init(*table);
/* try to insmod the module if iptc_init failed */
- if (!*handle && load_xtables_ko(modprobe_program, 0) != -1)
+ if (!*handle && xtables_load_ko(xtables_modprobe_program, false) != -1)
*handle = iptc_init(*table);
if (!*handle)