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
This commit is contained in:
Harald Welte
2020-03-19 09:18:31 +01:00
parent e42492971e
commit f46de7b70f

View File

@@ -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) {