diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-11-11 19:11:02 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-11-11 19:11:29 +0000 |
commit | 5d48250224fcb140b7e6e17f36b37deab4e0659b (patch) | |
tree | 0351fdeb2939063766199dc92581e6a1ed6f41c7 /src | |
parent | 6e6b3ff35f9baafb22d5459ca13c112b1e00ae1b (diff) | |
download | libguestfs-5d48250224fcb140b7e6e17f36b37deab4e0659b.tar.gz libguestfs-5d48250224fcb140b7e6e17f36b37deab4e0659b.tar.xz libguestfs-5d48250224fcb140b7e6e17f36b37deab4e0659b.zip |
32 bit: Use %td for ptrdiff_t (difference between two pointers).
Diffstat (limited to 'src')
-rw-r--r-- | src/inspect.c | 2 |
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; } |