From 4b7d6b0cac33d41cb3c74694ada06e19aa7e920e Mon Sep 17 00:00:00 2001 From: Gustavo Zacarias Date: Tue, 11 Nov 2014 10:20:22 -0300 Subject: 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 Signed-off-by: Pablo Neira Ayuso --- libarptc/libarptc_incl.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'libarptc') 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; -- cgit v1.2.3