diff --git a/decpcap.c b/decpcap.c index a31c2bb..b573caa 100644 --- a/decpcap.c +++ b/decpcap.c @@ -77,9 +77,9 @@ struct dp_handle * dp_open_offline(char * fname, char * ebuf) return dp_fillhandle(temp); } -struct dp_handle * dp_open_live(const char * device, int snaplen, int promisc, int to_ms, const char * ebuf) +struct dp_handle * dp_open_live(const char * device, int snaplen, int promisc, int to_ms, char * errbuf) { - pcap_t * temp = pcap_open_live(device, snaplen, promisc, to_ms, ebuf); + pcap_t * temp = pcap_open_live(device, snaplen, promisc, to_ms, errbuf); if (temp == NULL) { diff --git a/decpcap.h b/decpcap.h index a64255a..e0a9614 100644 --- a/decpcap.h +++ b/decpcap.h @@ -63,7 +63,7 @@ struct dp_handle { /* functions to set up a handle (which is basically just a pcap handle) */ -struct dp_handle * dp_open_live(const char * device, int snaplen, int promisc, int to_ms, const char * ebuf); +struct dp_handle * dp_open_live(const char * device, int snaplen, int promisc, int to_ms, char * errbuf); struct dp_handle * dp_open_offline(char * fname, char * ebuf); /* functions to add callbacks */