diff --git a/base/pcap-snoop.c b/base/pcap-snoop.c index e664a3d..fa89e1b 100644 --- a/base/pcap-snoop.c +++ b/base/pcap-snoop.c @@ -86,7 +86,7 @@ static int pcap_if_type=DLT_NULL; int err_exit PROTO_LIST((char *str,int num)); int usage PROTO_LIST((void)); int print_version PROTO_LIST((void)); -void sig_handler PROTO_LIST((void)); +void sig_handler PROTO_LIST((int sig)); void pcap_cb PROTO_LIST((u_char *ptr,struct pcap_pkthdr *hdr,u_char *data)); int main PROTO_LIST((int argc,char **argv)); @@ -124,7 +124,7 @@ int print_version() exit(0); } -void sig_handler() +void sig_handler(int sig) { fflush(stdout); exit(0);