From d13a01e2642b0e841c9a1d76e49b6503600c895d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannis=20Sch=C3=B6nleber?= Date: Wed, 20 Oct 2021 14:49:44 +0200 Subject: [PATCH] fix(cmd_parse): command parsing on arm machines * fixing command parsing as some compiler do not auto correct the -1 to a char type * also I needed to use ./configure LIBS="-lpthread" to make it compile --- src/rmamt_options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/rmamt_options.c b/src/rmamt_options.c index 9c47f39..3d5555a 100644 --- a/src/rmamt_options.c +++ b/src/rmamt_options.c @@ -76,7 +76,9 @@ static void print_usage (const char *name, bool failure) int rmamt_parse_options (const char *name, int argc, char *argv[]) { - char c, *tmp; + char *tmp; + int c; + const struct option options[] = { {"win-per-thread", no_argument, NULL, 'w'}, {"max-size", required_argument, NULL, 'm'},