packages/net/arpd/patches/005-remove-dropped-libevent-features.patch
jow 2a25ce62b5 [packages] arpd:
- fix compilation against newer libevent by dropping obsolete external references
	- fix uninitialized pointer to pcap pattern leading to invalid filter patterns even if -a is not used
	- remove dependency on @BROKEN


git-svn-id: svn://svn.openwrt.org/openwrt/packages@21268 3c298f89-4303-0410-b956-a3cf2f4a3e73
2010-04-30 14:31:18 +00:00

30 lines
525 B
Diff

--- a/arpd.c
+++ b/arpd.c
@@ -449,9 +449,6 @@ arpd_recv(int fd, short type, void *ev)
void
terminate_handler(int sig)
{
- extern int event_gotsig;
-
- event_gotsig = 1;
arpd_sig = sig;
}
@@ -468,7 +465,6 @@ int
main(int argc, char *argv[])
{
struct event recv_ev;
- extern int (*event_sigcb)(void);
char *dev, *and_pcap_exp;
int c, debug;
FILE *fp;
@@ -532,8 +528,6 @@ main(int argc, char *argv[])
perror("signal");
return (-1);
}
- event_sigcb = arpd_signal;
-
event_dispatch();
return (0);