From f46de7b70f5131d53dcc282d0145fb648736d757 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Thu, 19 Mar 2020 09:18:31 +0100 Subject: [PATCH] simtrace2_siff: getopt_long() returns int, not char This may be causing unwanted behavior while parsing the command line arguments, as reported by some Raspi users. Change-Id: I5b7db0795d16ab071e255c2c689e3b4872a933bb Related: OS#4223 --- host/src/simtrace2-sniff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/host/src/simtrace2-sniff.c b/host/src/simtrace2-sniff.c index dfb6e7c6..47d9e775 100644 --- a/host/src/simtrace2-sniff.c +++ b/host/src/simtrace2-sniff.c @@ -342,7 +342,7 @@ int main(int argc, char **argv) while (1) { int option_index = 0; - char c = getopt_long(argc, argv, "hi:kV:P:C:I:S:A:", opts, &option_index); + int c = getopt_long(argc, argv, "hi:kV:P:C:I:S:A:", opts, &option_index); if (c == -1) break; switch (c) {