Fix warning about signal() arguments type

This commit is contained in:
William Robinet 2020-08-27 17:13:55 +02:00
parent e645dc3562
commit bb5b88c03a

View file

@ -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);