diff --git a/pcap_to_node_pcap/main.cpp b/pcap_to_node_pcap/main.cpp index f42f5918..00d5fe1a 100644 --- a/pcap_to_node_pcap/main.cpp +++ b/pcap_to_node_pcap/main.cpp @@ -223,7 +223,7 @@ int main(int argc, char* argv[]) bool paramWasSet = false; int optionIndex = 0; - char opt = 0; + int opt = 0; while((opt = getopt_long (argc, argv, "f:o:m:p:i:vh", PcapSplitterOptions, &optionIndex)) != -1) {