diff options
author | Alfredo Cardigliano <cardigliano@ntop.org> | 2021-09-03 17:46:04 +0200 |
---|---|---|
committer | Alfredo Cardigliano <cardigliano@ntop.org> | 2021-09-03 17:46:04 +0200 |
commit | 57fce4e350252687b4721ea1b0d3df869fdedebf (patch) | |
tree | 867f2553425e3d51c78e4c02884d2030c6ff79f4 /example | |
parent | 89af9b7e3cdc06609826bcaf2093fae72a687ff6 (diff) |
Fix unused var
Diffstat (limited to 'example')
-rw-r--r-- | example/ndpiReader.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 395580161..ab93872f2 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -787,9 +787,10 @@ static void parseOptions(int argc, char **argv) { int option_idx = 0; int opt; #ifndef USE_DPDK - char *__pcap_file = NULL, *bind_mask = NULL; + char *__pcap_file = NULL; int thread_id, do_capture = 0; #ifdef linux + char *bind_mask = NULL; u_int num_cores = sysconf(_SC_NPROCESSORS_ONLN); #endif #endif @@ -856,10 +857,12 @@ static void parseOptions(int argc, char **argv) { break; #ifndef USE_DPDK +#ifdef linux case 'g': bind_mask = optarg; break; #endif +#endif case 'l': num_loops = atoi(optarg); |