Fixed compiler warnings
This commit is contained in:
parent
53a14aeaf1
commit
6056149d16
8
sshfs.c
8
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue