From 10e718b8ca78c4e332df9d342cd662bfe3fd2bb5 Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Sun, 9 Oct 2016 22:56:51 -0700 Subject: [PATCH] Use NULL as option processor where possible. --- example/notify_inval_entry.c | 10 +--------- example/notify_inval_inode.c | 10 +--------- example/notify_store_retrieve.c | 10 +--------- 3 files changed, 3 insertions(+), 27 deletions(-) diff --git a/example/notify_inval_entry.c b/example/notify_inval_entry.c index 6b1b527..d5da1c5 100644 --- a/example/notify_inval_entry.c +++ b/example/notify_inval_entry.c @@ -115,13 +115,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) { @@ -282,8 +275,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) 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) { diff --git a/example/notify_store_retrieve.c b/example/notify_store_retrieve.c index dc87619..cc7e865 100644 --- a/example/notify_store_retrieve.c +++ b/example/notify_store_retrieve.c @@ -111,13 +111,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) { @@ -348,8 +341,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) -- 2.30.2