aboutsummaryrefslogtreecommitdiff
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
parentb5dace61f31249d811ece2c198e3094c292f2766 (diff)
Use NULL as option processor where possible.
-rw-r--r--example/notify_inval_entry.c10
-rw-r--r--example/notify_inval_inode.c10
-rw-r--r--example/notify_store_retrieve.c10
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)