diff options
author | Luca Deri <deri@ntop.org> | 2016-04-24 10:35:54 +0200 |
---|---|---|
committer | Luca Deri <deri@ntop.org> | 2016-04-24 10:35:54 +0200 |
commit | d427647ce7f93e767b5c7ef3efde0fc3af609b0e (patch) | |
tree | 8213e3a3a6e4d0535fe35901dd50bc6b5424549a /example/ndpiReader.c | |
parent | 8a4c15ecf5c5c1430e8047324a5e336db2f503f1 (diff) |
Firxed warnings
Diffstat (limited to 'example/ndpiReader.c')
-rw-r--r-- | example/ndpiReader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 09e9a433a..d89d80b00 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -1044,14 +1044,14 @@ static pcap_t * openPcapFileOrDevice(u_int16_t thread_id, const u_char * pcap_fi pcap_t * pcap_handle = NULL; /* trying to open a live interface */ - if((pcap_handle = pcap_open_live(pcap_file, snaplen, promisc, 500, pcap_error_buffer)) == NULL) { + if((pcap_handle = pcap_open_live((char*)pcap_file, snaplen, promisc, 500, pcap_error_buffer)) == NULL) { capture_for = capture_until = 0; live_capture = 0; num_threads = 1; /* Open pcap files in single threads mode */ /* trying to open a pcap file */ - if((pcap_handle = pcap_open_offline(pcap_file, pcap_error_buffer)) == NULL) { + if((pcap_handle = pcap_open_offline((char*)pcap_file, pcap_error_buffer)) == NULL) { char filename[256]; /* trying to open a pcap playlist */ @@ -1197,7 +1197,7 @@ void test_lib() { #endif for(thread_id = 0; thread_id < num_threads; thread_id++) { - pcap_t * cap = openPcapFileOrDevice(thread_id, _pcap_file[thread_id]); + pcap_t * cap = openPcapFileOrDevice(thread_id, (const u_char*)_pcap_file[thread_id]); setupDetection(thread_id, cap); } |