mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user