diff options
author | Gustavo Zacarias <gustavo@zacarias.com.ar> | 2014-11-11 10:20:22 -0300 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2014-11-12 12:57:36 +0100 |
commit | 4b7d6b0cac33d41cb3c74694ada06e19aa7e920e (patch) | |
tree | d34df3cc256b2b16f0f5d68dd49112ffe9186a1c /libarptc/libarptc_incl.c | |
parent | c29948407c6e1960b9ca0ff3f1479773c95d25c9 (diff) |
arptables: remove dead dynamic hooks code
The code is unused and #if'ed away, it also breaks pure-static
builds because of the dlfcn.h include.
Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'libarptc/libarptc_incl.c')
-rw-r--r-- | libarptc/libarptc_incl.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/libarptc/libarptc_incl.c b/libarptc/libarptc_incl.c index 9c1aeac..1d2e8b7 100644 --- a/libarptc/libarptc_incl.c +++ b/libarptc/libarptc_incl.c @@ -257,22 +257,7 @@ TC_INIT(const char *tablename) == NULL) return NULL; -/* Too hard --RR */ -#if 0 - sprintf(pathname, "%s/%s", ARPT_LIB_DIR, info.name); - dynlib = dlopen(pathname, RTLD_NOW); - if (!dynlib) { - errno = ENOENT; - return NULL; - } - h->hooknames = dlsym(dynlib, "hooknames"); - if (!h->hooknames) { - errno = ENOENT; - return NULL; - } -#else h->hooknames = hooknames; -#endif /* Initialize current state */ h->info = info; |