diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-06-07 13:28:05 -0400 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-07-12 17:10:17 +0200 |
commit | 3805f365faa2b20c20327e643f603d8e2fdf5a26 (patch) | |
tree | c73044c72772c9c2ea41cfc8a04a1bcf8fab32c1 /sshfs.c | |
parent | 8999210c9327d91ee44a1a44e78a9b70c78a5239 (diff) | |
download | sshfs-3805f365faa2b20c20327e643f603d8e2fdf5a26.tar sshfs-3805f365faa2b20c20327e643f603d8e2fdf5a26.tar.gz sshfs-3805f365faa2b20c20327e643f603d8e2fdf5a26.tar.bz2 sshfs-3805f365faa2b20c20327e643f603d8e2fdf5a26.zip |
Fixed compiler warnings
Diffstat (limited to 'sshfs.c')
-rw-r--r-- | sshfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |