From: Florian Forster Date: Fri, 16 Mar 2007 10:45:15 +0000 (+0100) Subject: iptables plugin: Remove `iptables_init' because it's not needed.. X-Git-Tag: collectd-4.0.0~88^2~2 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=05f37b50e75f25b66bafca0ff6af1c496b6eb01d;p=collectd.git iptables plugin: Remove `iptables_init' because it's not needed.. ..and it causes the build to fail when `libiptc' wasn't present. --- 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 }