fix typo in code

This commit is contained in:
wangyu- 2018-11-13 03:14:44 -06:00
parent 9c8316e957
commit bb7fe5c0d4
2 changed files with 2 additions and 3 deletions

View File

@ -759,7 +759,7 @@ void process_arg(int argc, char *argv[]) //process all options
} }
else if(strcmp(long_options[option_index].name,"no-pcap-mutex")==0) else if(strcmp(long_options[option_index].name,"no-pcap-mutex")==0)
{ {
use_pcap_mutex=9; use_pcap_mutex=0;
mylog(log_warn,"--no-pcap-mutex enabled, we will assume the underlying pcap calls are threadsafe\n"); mylog(log_warn,"--no-pcap-mutex enabled, we will assume the underlying pcap calls are threadsafe\n");
} }
else if(strcmp(long_options[option_index].name,"easy-tcp")==0) else if(strcmp(long_options[option_index].name,"easy-tcp")==0)

View File

@ -866,10 +866,9 @@ void init_filter(int port)
} }
ev_sleep(0.001); ev_sleep(0.001);
} }
mylog(log_info,"breakloop() succeed after %lld attempt(s)\n", tmp_cnt);
} }
mylog(log_info,"breakloop() succeed after %lld attempt(s)\n", tmp_cnt);
if(1) if(1)
{ {
int ret=pcap_setdirection(pcap_handle,PCAP_D_IN); int ret=pcap_setdirection(pcap_handle,PCAP_D_IN);