libxtables: prefix/order - modprobe and xtables.ko loading
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>
diff --git a/ip6tables-restore.c b/ip6tables-restore.c
index a84c2e3..097711f 100644
--- a/ip6tables-restore.c
+++ b/ip6tables-restore.c
@@ -12,6 +12,7 @@
#include <getopt.h>
#include <sys/errno.h>
+#include <stdbool.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
@@ -64,7 +65,7 @@
if (!handle) {
/* try to insmod the module if iptc_init failed */
- load_xtables_ko(modprobe_program, 0);
+ xtables_load_ko(xtables_modprobe_program, false);
handle = ip6tc_init(tablename);
}
@@ -165,7 +166,7 @@
noflush = 1;
break;
case 'M':
- modprobe_program = optarg;
+ xtables_modprobe_program = optarg;
break;
}
}