From: Richard W.M. Jones Date: Fri, 11 Nov 2011 19:11:02 +0000 (+0000) Subject: 32 bit: Use %td for ptrdiff_t (difference between two pointers). X-Git-Tag: 1.14.3~10 X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=1a561be63c7670dca40c14b702f3610165ad880a;p=libguestfs.git 32 bit: Use %td for ptrdiff_t (difference between two pointers). (cherry picked from commit 5d48250224fcb140b7e6e17f36b37deab4e0659b) --- diff --git a/src/inspect.c b/src/inspect.c index e83e824..1b41be5 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; }