Fix Tile compile

pull/485/head
Victor Julien 13 years ago
parent 20ca270dc3
commit ff668c2030

@ -1252,13 +1252,13 @@ static TmEcode ParseCommandLine(int argc, char** argv, SCInstance *suri)
} }
#ifdef HAVE_MPIPE #ifdef HAVE_MPIPE
else if(strcmp((long_opts[option_index]).name , "mpipe") == 0) { else if(strcmp((long_opts[option_index]).name , "mpipe") == 0) {
if (run_mode == RUNMODE_UNKNOWN) { if (suri->run_mode == RUNMODE_UNKNOWN) {
run_mode = RUNMODE_TILERA_MPIPE; suri->run_mode = RUNMODE_TILERA_MPIPE;
if (optarg != NULL) { if (optarg != NULL) {
memset(pcap_dev, 0, sizeof(pcap_dev)); memset(suri->pcap_dev, 0, sizeof(suri->pcap_dev));
strlcpy(pcap_dev, optarg, strlcpy(suri->pcap_dev, optarg,
((strlen(optarg) < sizeof(pcap_dev)) ? ((strlen(optarg) < sizeof(suri->pcap_dev)) ?
(strlen(optarg) + 1) : sizeof(pcap_dev))); (strlen(optarg) + 1) : sizeof(suri->pcap_dev)));
LiveRegisterDevice(optarg); LiveRegisterDevice(optarg);
} }
} else { } else {

Loading…
Cancel
Save