From ffb2658abbdf6ae65b31c2931b6a489747ba5a43 Mon Sep 17 00:00:00 2001 From: Nathaniel Wesley Filardo Date: Tue, 28 Jun 2022 14:45:31 +0100 Subject: [PATCH] getopt_long returns an int, not a char On platforms with an unsigned char, such as Arm, this results in always taking error paths around initialization. Fixes https://github.com/fangfufu/httpdirfs/issues/103 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index f59a56d..8ceacda 100644 --- a/src/main.c +++ b/src/main.c @@ -169,7 +169,7 @@ void parse_config_file(char ***argv, int *argc) static int parse_arg_list(int argc, char **argv, char ***fuse_argv, int *fuse_argc) { - char c; + int c; int long_index = 0; const char *short_opts = "o:hVdfsp:u:P:"; const struct option long_opts[] = {