From 10e718b8ca78c4e332df9d342cd662bfe3fd2bb5 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 9 Oct 2016 22:56:51 -0700 Subject: Use NULL as option processor where possible. --- example/notify_inval_inode.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'example/notify_inval_inode.c') diff --git a/example/notify_inval_inode.c b/example/notify_inval_inode.c index 4cd5be9..9cd7e95 100644 --- a/example/notify_inval_inode.c +++ b/example/notify_inval_inode.c @@ -108,13 +108,6 @@ static const struct fuse_opt option_spec[] = { FUSE_OPT_END }; -static int opt_proc(void *data, const char *arg, int key, - struct fuse_args *outargs) { - (void) outargs; (void) data; (void) arg; - (void) key; - return 1; -} - static int tfs_stat(fuse_ino_t ino, struct stat *stbuf) { stbuf->st_ino = ino; if (ino == FUSE_ROOT_ID) { @@ -302,8 +295,7 @@ int main(int argc, char *argv[]) { pthread_t updater; int ret = -1; - if (fuse_opt_parse(&args, &options, option_spec, - opt_proc) == -1) + if (fuse_opt_parse(&args, &options, option_spec, NULL) == -1) return 1; if (fuse_parse_cmdline(&args, &opts) != 0) { -- cgit v1.2.3