From 7ce1166b0a3fb0969ba6164c610cc49b52f58f2f Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Mon, 10 Oct 2016 19:20:15 -0700 Subject: [PATCH] Use NULL for option processing function where possible. --- lib/fuse_lowlevel.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/lib/fuse_lowlevel.c b/lib/fuse_lowlevel.c index d10191b..d07eed5 100644 --- a/lib/fuse_lowlevel.c +++ b/lib/fuse_lowlevel.c @@ -2631,15 +2631,6 @@ void fuse_lowlevel_help(void) " -o clone_fd clone fuse device file descriptors\n\n"); } -static int fuse_ll_opt_proc(void *data, const char *arg, int key, - struct fuse_args *outargs) -{ - (void) data; (void) outargs; (void) key; (void) arg; - - /* Passthrough unknown options */ - return 1; -} - void fuse_session_destroy(struct fuse_session *se) { struct fuse_ll_pipe *llp; @@ -2846,7 +2837,7 @@ struct fuse_session *fuse_session_new(struct fuse_args *args, mo = parse_mount_opts(args); if (mo == NULL) goto out2; - if(fuse_opt_parse(args, se, fuse_ll_opts, fuse_ll_opt_proc) == -1) + if(fuse_opt_parse(args, se, fuse_ll_opts, NULL) == -1) goto out3; if (args->argc != 1) { int i; -- 2.30.2