From: Michihiro NAKAJIMA Date: Thu, 25 Feb 2010 14:05:35 +0000 (-0500) Subject: Explicit cast to intmax_t for uid and gid in archive_write_disk.c. X-Git-Tag: v3.0.0a~1189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=19363b4ad83bbc8a0b3b0b742cc89602fb2d8c24;p=thirdparty%2Flibarchive.git Explicit cast to intmax_t for uid and gid in archive_write_disk.c. SVN-Revision: 1983 --- diff --git a/libarchive/archive_write_disk.c b/libarchive/archive_write_disk.c index f5c0f98cd..9a014689b 100644 --- a/libarchive/archive_write_disk.c +++ b/libarchive/archive_write_disk.c @@ -1877,7 +1877,7 @@ set_ownership(struct archive_write_disk *a) /* If we know we can't change it, don't bother trying. */ if (a->user_uid != 0 && a->user_uid != a->uid) { archive_set_error(&a->archive, errno, - "Can't set UID=%jd", a->uid); + "Can't set UID=%jd", (intmax_t)a->uid); return (ARCHIVE_WARN); } #endif @@ -1908,8 +1908,8 @@ set_ownership(struct archive_write_disk *a) #endif archive_set_error(&a->archive, errno, - "Can't set user=%jd/group=%jd for %s", a->uid, a->gid, - a->name); + "Can't set user=%jd/group=%jd for %s", + (intmax_t)a->uid, (intmax_t)a->gid, a->name); return (ARCHIVE_WARN); }