Fix unused var
This commit is contained in:
@@ -787,9 +787,10 @@ static void parseOptions(int argc, char **argv) {
|
|||||||
int option_idx = 0;
|
int option_idx = 0;
|
||||||
int opt;
|
int opt;
|
||||||
#ifndef USE_DPDK
|
#ifndef USE_DPDK
|
||||||
char *__pcap_file = NULL, *bind_mask = NULL;
|
char *__pcap_file = NULL;
|
||||||
int thread_id, do_capture = 0;
|
int thread_id, do_capture = 0;
|
||||||
#ifdef linux
|
#ifdef linux
|
||||||
|
char *bind_mask = NULL;
|
||||||
u_int num_cores = sysconf(_SC_NPROCESSORS_ONLN);
|
u_int num_cores = sysconf(_SC_NPROCESSORS_ONLN);
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
@@ -856,9 +857,11 @@ static void parseOptions(int argc, char **argv) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
#ifndef USE_DPDK
|
#ifndef USE_DPDK
|
||||||
|
#ifdef linux
|
||||||
case 'g':
|
case 'g':
|
||||||
bind_mask = optarg;
|
bind_mask = optarg;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
case 'l':
|
case 'l':
|
||||||
|
|||||||
Reference in New Issue
Block a user