summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-11-11 19:11:02 +0000
committerRichard W.M. Jones <rjones@redhat.com>2011-11-11 19:11:29 +0000
commit5d48250224fcb140b7e6e17f36b37deab4e0659b (patch)
tree0351fdeb2939063766199dc92581e6a1ed6f41c7
parent6e6b3ff35f9baafb22d5459ca13c112b1e00ae1b (diff)
downloadlibguestfs-5d48250224fcb140b7e6e17f36b37deab4e0659b.tar.gz
libguestfs-5d48250224fcb140b7e6e17f36b37deab4e0659b.tar.xz
libguestfs-5d48250224fcb140b7e6e17f36b37deab4e0659b.zip
32 bit: Use %td for ptrdiff_t (difference between two pointers).
-rw-r--r--src/inspect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/inspect.c b/src/inspect.c
index e83e8241..1b41be58 100644
--- a/src/inspect.c
+++ b/src/inspect.c
@@ -719,7 +719,7 @@ guestfs___download_to_tmp (guestfs_h *g, struct inspect_fs *fs,
int64_t size;
/* Make the basename unique by prefixing it with the fs number. */
- if (asprintf (&r, "%s/%ld-%s", g->tmpdir, fs - g->fses, basename) == -1) {
+ if (asprintf (&r, "%s/%td-%s", g->tmpdir, fs - g->fses, basename) == -1) {
perrorf (g, "asprintf");
return NULL;
}