From: Thomas Weißschuh Date: Wed, 26 Apr 2023 09:49:08 +0000 (+0200) Subject: test_enosys: use correct return value for getopt_long X-Git-Tag: v2.39~46^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2aeb519ae9b1146c314ffbaf2264d497e0062ff1;p=thirdparty%2Futil-linux.git test_enosys: use correct return value for getopt_long Otherwise option parsing is broken on big endian. Signed-off-by: Thomas Weißschuh --- diff --git a/tests/helpers/test_enosys.c b/tests/helpers/test_enosys.c index f8e97bee58..f33a16476a 100644 --- a/tests/helpers/test_enosys.c +++ b/tests/helpers/test_enosys.c @@ -72,7 +72,7 @@ const struct syscall syscalls[] = { int main(int argc, char **argv) { - char c; + int c; size_t i; bool found; static const struct option longopts[] = {