Fixed compiler warnings

This commit is contained in:
Nikolaus Rath 2017-06-07 13:28:05 -04:00
parent 53a14aeaf1
commit 6056149d16
1 changed files with 6 additions and 2 deletions

View File

@ -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)