aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-22 13:50:14 +0200
committerGravatar Nikolaus Rath <Nikolaus@rath.org>2017-08-22 13:59:17 +0200
commite71bb4855732ae40310b58deded646b416de46cc (patch)
tree96541071ac42d5c8410e75ff997072b6362f3b0e
parent1a73904e687b588bf669fa702d823b092ab9eb0c (diff)
Fix two compiler warnings.
-rw-r--r--example/cuse.c2
-rw-r--r--lib/helper.c2
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] <mountpoint>\n\n",
args.argv[0]);
printf("FUSE options:\n");