From 3805f365faa2b20c20327e643f603d8e2fdf5a26 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Wed, 7 Jun 2017 13:28:05 -0400 Subject: Fixed compiler warnings --- sshfs.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'sshfs.c') diff --git a/sshfs.c b/sshfs.c index b926f6a..567c9f8 100644 --- a/sshfs.c +++ b/sshfs.c @@ -3437,10 +3437,14 @@ static int workaround_opt_proc(void *data, const char *arg, int key, return -1; } -int parse_workarounds(void) +static int parse_workarounds(void) { int res; - char *argv[] = { "", "-o", sshfs.workarounds, NULL }; + /* Need separate variables because literals are const + char */ + char argv0[] = ""; + char argv1[] = "-o"; + char *argv[] = { argv0, argv1, sshfs.workarounds, NULL }; struct fuse_args args = FUSE_ARGS_INIT(3, argv); char *s = sshfs.workarounds; if (!s) -- cgit v1.2.3