source: packages/net/arpd/patches/005-remove-dropped-libevent-features.patch @ 21268

Last change on this file since 21268 was 21268, checked in by jow, 7 years ago

[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
File size: 525 bytes
  • arpd.c

    a b arpd_recv(int fd, short type, void *ev) 
    449449void 
    450450terminate_handler(int sig) 
    451451{ 
    452         extern int event_gotsig; 
    453  
    454         event_gotsig = 1; 
    455452        arpd_sig = sig; 
    456453} 
    457454 
    int 
    468465main(int argc, char *argv[]) 
    469466{ 
    470467        struct event recv_ev; 
    471         extern int (*event_sigcb)(void); 
    472468        char *dev, *and_pcap_exp; 
    473469        int c, debug; 
    474470        FILE *fp; 
    main(int argc, char *argv[]) 
    532528                perror("signal"); 
    533529                return (-1); 
    534530        } 
    535         event_sigcb = arpd_signal; 
    536          
    537531        event_dispatch(); 
    538532 
    539533        return (0); 
Note: See TracBrowser for help on using the repository browser.