* [PATCH] arptables: remove dead dynamic hooks code
@ 2014-11-11 13:20 Gustavo Zacarias
2014-11-12 11:58 ` Pablo Neira Ayuso
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo Zacarias @ 2014-11-11 13:20 UTC (permalink / raw)
To: netfilter-devel; +Cc: Gustavo Zacarias
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>
---
arptables.c | 1 -
libarptc/libarptc_incl.c | 15 ---------------
2 files changed, 16 deletions(-)
diff --git a/arptables.c b/arptables.c
index 64ac3aa..845e226 100644
--- a/arptables.c
+++ b/arptables.c
@@ -35,7 +35,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <inttypes.h>
-#include <dlfcn.h>
#include <ctype.h>
#include <stdarg.h>
#include <limits.h>
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;
--
2.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] arptables: remove dead dynamic hooks code
2014-11-11 13:20 [PATCH] arptables: remove dead dynamic hooks code Gustavo Zacarias
@ 2014-11-12 11:58 ` Pablo Neira Ayuso
0 siblings, 0 replies; 2+ messages in thread
From: Pablo Neira Ayuso @ 2014-11-12 11:58 UTC (permalink / raw)
To: Gustavo Zacarias; +Cc: netfilter-devel
On Tue, Nov 11, 2014 at 10:20:22AM -0300, Gustavo Zacarias wrote:
> The code is unused and #if'ed away, it also breaks pure-static
> builds because of the dlfcn.h include.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-12 11:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-11 13:20 [PATCH] arptables: remove dead dynamic hooks code Gustavo Zacarias
2014-11-12 11:58 ` Pablo Neira Ayuso
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).