From: Nikolaus Rath Date: Mon, 10 Oct 2016 05:56:51 +0000 (-0700) Subject: Use NULL as option processor where possible. X-Git-Tag: fuse-3.0.0rc1~64 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=10e718b8ca78c4e332df9d342cd662bfe3fd2bb5;p=qemu-gpiodev%2Flibfuse.git Use NULL as option processor where possible. --- 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)