From: Nikolaus Rath Date: Tue, 22 Aug 2017 11:50:14 +0000 (+0200) Subject: Fix two compiler warnings. X-Git-Tag: fuse-3.2.0~24 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e71bb4855732ae40310b58deded646b416de46cc;p=qemu-gpiodev%2Flibfuse.git Fix two compiler warnings. --- 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");