diff options
author | Nikolaus Rath <Nikolaus@rath.org> | 2017-06-07 13:28:05 -0400 |
---|---|---|
committer | Nikolaus Rath <Nikolaus@rath.org> | 2017-06-07 13:42:34 -0400 |
commit | 6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc (patch) | |
tree | d6c1b3fe2acf7c8ac39215657c8a4ce0e3c0a95b | |
parent | 53a14aeaf1bd118fb7b7cec9c9d13a4946e35777 (diff) | |
download | sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.tar sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.tar.gz sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.tar.bz2 sshfs-6056149d16b0d6e8f2c171e9f6b3a20e25fe21fc.zip |
Fixed compiler warnings
-rw-r--r-- | sshfs.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |