X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=fuse%2Fguestmount.c;h=8812ac2739acc6b2213bcd426ac25e5cdff4ed79;hp=ec3cc77395be8158a703785f4ce91851e44f8871;hb=e1f5472395b08033c60054e8f87f3c61126c4fa4;hpb=429de2254176e470035eef05e0f3e9910d46863c diff --git a/fuse/guestmount.c b/fuse/guestmount.c index ec3cc77..8812ac2 100644 --- a/fuse/guestmount.c +++ b/fuse/guestmount.c @@ -619,7 +619,7 @@ fg_read (const char *path, char *buf, size_t size, off_t offset, size_t rsize; if (verbose) - fprintf (stderr, "fg_read: %s: size %zu offset %zu\n", + fprintf (stderr, "fg_read: %s: size %zu offset %ju\n", path, size, offset); /* The guestfs protocol limits size to somewhere over 2MB. We just @@ -1110,6 +1110,10 @@ main (int argc, char *argv[]) /* Finish off FUSE args. */ ADD_FUSE_ARG (argv[optind]); + /* + It says about the line containing the for-statement: + error: assuming signed overflow does not occur when simplifying conditional to constant [-Wstrict-overflow] + if (verbose) { fprintf (stderr, "guestmount: invoking FUSE with args ["); for (i = 0; i < fuse_argc; ++i) { @@ -1118,6 +1122,7 @@ main (int argc, char *argv[]) } fprintf (stderr, "]\n"); } + */ r = fuse_main (fuse_argc, (char **) fuse_argv, &fg_operations, NULL);