diff options
author | Campus <campus@ntop.org> | 2017-07-09 18:10:10 +0200 |
---|---|---|
committer | Campus <campus@ntop.org> | 2017-07-09 18:10:10 +0200 |
commit | c5bc91145f9ce6553678b1ea3a6c0ddc1e6afdfb (patch) | |
tree | bf7aaa3fd4d14429b5487433dd6f68b54d5906fb | |
parent | cfa9a79f67c089718b3bf3b61f24be1412a80936 (diff) |
removed warning compilation for - warning: passing argument 3 of 'pcap_compile' from incompatible pointer type
-rw-r--r-- | example/ndpiReader.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index dbcfd1844..f2fefa0a1 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -60,17 +60,17 @@ /** Client parameters **/ static char *_pcap_file[MAX_NUM_READER_THREADS]; /**< Ingress pcap file/interfaces */ static FILE *playlist_fp[MAX_NUM_READER_THREADS] = { NULL }; /**< Ingress playlist */ -static FILE *results_file = NULL; -static char *results_path = NULL; +static FILE *results_file = NULL; +static char *results_path = NULL; #ifndef __OpenBSD__ -static char *_bpf_filter = NULL; /**< bpf filter */ +static const char *_bpf_filter = NULL; /**< bpf filter */ #endif -static char *_protoFilePath = NULL; /**< Protocol file path */ -static char *_statsFilePath = NULL; /**< Top stats file path */ +static char *_protoFilePath = NULL; /**< Protocol file path */ +static char *_statsFilePath = NULL; /**< Top stats file path */ #ifdef HAVE_JSON_C -static char *_diagnoseFilePath = NULL; /**< Top stats file path */ -static char *_jsonFilePath = NULL; /**< JSON file path */ -static FILE *stats_fp = NULL; /**< for Top Stats JSON file */ +static char *_diagnoseFilePath = NULL; /**< Top stats file path */ +static char *_jsonFilePath = NULL; /**< JSON file path */ +static FILE *stats_fp = NULL; /**< for Top Stats JSON file */ #endif #ifdef HAVE_JSON_C static json_object *jArray_known_flows, *jArray_unknown_flows; |