From bff6eba56335b3f6a9310054884a53a31f4edfc5 Mon Sep 17 00:00:00 2001 From: Josh Bailey Date: Thu, 7 May 2020 13:23:23 +1200 Subject: [PATCH] getopt() wants an int, not a possibly signed char. --- pcap_to_node_pcap/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {