Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
cardigliano committed Nov 18, 2024
1 parent 2e2f08c commit 2dbf6b3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions example/ndpiReader.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ FILE *fingerprint_fp = NULL; /**< for flow fingerprint export */

/** User preferences **/
char *addr_dump_path = NULL;
u_int8_t enable_realtime_output = 0, enable_protocol_guess = NDPI_GIVEUP_GUESS_BY_PORT | NDPI_GIVEUP_GUESS_BY_IP, enable_payload_analyzer = 0, num_bin_clusters = 0, extcap_exit = 0;
u_int8_t enable_realtime_output = 0, enable_payload_analyzer = 0, num_bin_clusters = 0, extcap_exit = 0;
u_int8_t verbose = 0, enable_flow_stats = 0;
bool do_load_lists = false;

Expand Down Expand Up @@ -1130,7 +1130,6 @@ static void parseOptions(int argc, char **argv) {
break;

case 'd':
enable_protocol_guess = 0;
if(reader_add_cfg(NULL, "dpi.guess_on_giveup", "0", 1) == 1) {
printf("Invalid parameter [%s] [num:%d/%d]\n", optarg, num_cfgs, MAX_NUM_CFGS);
exit(1);
Expand Down

0 comments on commit 2dbf6b3

Please sign in to comment.