From e4290a0d7b1be891d93cded8b43c77c844ec6ca5 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Thu, 15 Mar 2012 22:48:30 +0000 Subject: [PATCH] fix warning - errbuf is not const at all --- decpcap.c | 4 ++-- decpcap.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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 */