git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes for compiling on 32 bit.
[libguestfs.git]
/
fuse
/
guestmount.c
diff --git
a/fuse/guestmount.c
b/fuse/guestmount.c
index
ec3cc77
..
8812ac2
100644
(file)
--- 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)
size_t rsize;
if (verbose)
- fprintf (stderr, "fg_read: %s: size %zu offset %
z
u\n",
+ fprintf (stderr, "fg_read: %s: size %zu offset %
j
u\n",
path, size, offset);
/* The guestfs protocol limits size to somewhere over 2MB. We just
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]);
/* 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) {
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");
}
}
fprintf (stderr, "]\n");
}
+ */
r = fuse_main (fuse_argc, (char **) fuse_argv, &fg_operations, NULL);
r = fuse_main (fuse_argc, (char **) fuse_argv, &fg_operations, NULL);