From e71bb4855732ae40310b58deded646b416de46cc Mon Sep 17 00:00:00 2001 From: Nikolaus Rath Date: Tue, 22 Aug 2017 13:50:14 +0200 Subject: [PATCH] Fix two compiler warnings. --- example/cuse.c | 2 +- lib/helper.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example/cuse.c b/example/cuse.c index da17b0d..b5ac122 100644 --- a/example/cuse.c +++ b/example/cuse.c @@ -233,7 +233,7 @@ static void cusexmp_ioctl(fuse_req_t req, int cmd, void *arg, case FIOC_READ: is_read = 1; - /* no break */ + /* fall through */ case FIOC_WRITE: fioc_do_rw(req, arg, in_buf, in_bufsz, out_bufsz, is_read); break; diff --git a/lib/helper.c b/lib/helper.c index 9d26c14..564a433 100644 --- a/lib/helper.c +++ b/lib/helper.c @@ -284,7 +284,7 @@ int fuse_main_real(int argc, char *argv[], const struct fuse_operations *op, } if (opts.show_help) { - if(args.argv[0] != '\0') + if(args.argv[0][0] != '\0') printf("usage: %s [options] \n\n", args.argv[0]); printf("FUSE options:\n"); -- 2.30.2