aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikolaus Rath <Nikolaus@rath.org>2017-06-07 13:28:05 -0400
committerNikolaus Rath <Nikolaus@rath.org>2017-06-07 13:42:34 -0400
commit6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc (patch)
treed6c1b3fe2acf7c8ac39215657c8a4ce0e3c0a95b
parent53a14aeaf1bd118fb7b7cec9c9d13a4946e35777 (diff)
downloadsshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.tar
sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.tar.gz
sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.tar.bz2
sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.zip
Fixed compiler warnings
-rw-r--r--sshfs.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sshfs.c b/sshfs.c
index fdd4a9b..e155748 100644
--- a/sshfs.c
+++ b/sshfs.c
@@ -3390,10 +3390,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)