Fix two compiler warnings.
authorNikolaus Rath <Nikolaus@rath.org>
Tue, 22 Aug 2017 11:50:14 +0000 (13:50 +0200)
committerNikolaus Rath <Nikolaus@rath.org>
Tue, 22 Aug 2017 11:59:17 +0000 (13:59 +0200)
example/cuse.c
lib/helper.c

index da17b0df0af83921b94c1496dea79545cba17157..b5ac1220bfa7deb30357753fe851b822e78e9352 100644 (file)
@@ -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;
index 9d26c1461174f13df74b5faa9183fdf1eb4ed083..564a433ee5035b05aff6f2608733b8aa1ab5aa46 100644 (file)
@@ -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");