]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
test_enosys: use correct return value for getopt_long
authorThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Apr 2023 09:49:08 +0000 (11:49 +0200)
committerThomas Weißschuh <thomas@t-8ch.de>
Wed, 26 Apr 2023 10:24:05 +0000 (12:24 +0200)
Otherwise option parsing is broken on big endian.

Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
tests/helpers/test_enosys.c

index f8e97bee58d3c1be1910ed36bd26ab75db7a4d5f..f33a16476af87897125ba3f3369ef8f7894b3f47 100644 (file)
@@ -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[] = {