aboutsummaryrefslogtreecommitdiff
path: root/example/notify_store_retrieve.c
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-09 22:56:51 -0700
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2016-10-09 22:56:51 -0700
commit10e718b8ca78c4e332df9d342cd662bfe3fd2bb5 (patch)
tree50a00b501fbc6bb9af04bee6a27a89c1aa1e5881 /example/notify_store_retrieve.c
parentb5dace61f31249d811ece2c198e3094c292f2766 (diff)
Use NULL as option processor where possible.
Diffstat (limited to 'example/notify_store_retrieve.c')
-rw-r--r--example/notify_store_retrieve.c10
1 files changed, 1 insertions, 9 deletions
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)