diff options
author | Harald Welte <laforge@osmocom.org> | 2020-03-19 09:18:31 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2020-03-19 09:18:31 +0100 |
commit | f46de7b70f5131d53dcc282d0145fb648736d757 (patch) | |
tree | 07240e9ebbf4a818ba0e0d212ea3784b461b9231 | |
parent | e42492971e130b4c03229f6b818a9b1183f1ff36 (diff) |
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
-rw-r--r-- | host/src/simtrace2-sniff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/host/src/simtrace2-sniff.c b/host/src/simtrace2-sniff.c index dfb6e7c..47d9e77 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) { |