fix warning - errbuf is not const at all
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user