From 05f37b50e75f25b66bafca0ff6af1c496b6eb01d Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Fri, 16 Mar 2007 11:45:15 +0100 Subject: [PATCH] iptables plugin: Remove `iptables_init' because it's not needed.. ..and it causes the build to fail when `libiptc' wasn't present. --- src/iptables.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/iptables.c b/src/iptables.c index bc035d9f..84878fdd 100644 --- a/src/iptables.c +++ b/src/iptables.c @@ -206,11 +206,6 @@ static int iptables_config (char *key, char *value) } #endif /* IPTABLES_HAVE_READ */ -static void iptables_init (void) -{ - return; -} - static void iptables_write (char *host, char *orig_inst, char *val, char *type) { char *table; @@ -388,7 +383,7 @@ void module_register (void) plugin_register ("ipt_bytes", NULL, NULL, iptables_write_bytes); plugin_register ("ipt_packets", NULL, NULL, iptables_write_packets); #if IPTABLES_HAVE_READ - plugin_register (MODULE_NAME, iptables_init, iptables_read, NULL); + plugin_register (MODULE_NAME, NULL, iptables_read, NULL); cf_register (MODULE_NAME, iptables_config, config_keys, config_keys_num); #endif } -- 2.30.2