From: Michihiro NAKAJIMA Date: Sun, 25 Apr 2010 13:13:52 +0000 (-0400) Subject: Unbreak build on cygwin. X-Git-Tag: v3.0.0a~1087 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d60a42bb791e773a180eee6100df0074e638fce5;p=thirdparty%2Flibarchive.git Unbreak build on cygwin. SVN-Revision: 2292 --- diff --git a/libarchive/archive_write_set_format_gnutar.c b/libarchive/archive_write_set_format_gnutar.c index 2fef54c0c..e04482e35 100644 --- a/libarchive/archive_write_set_format_gnutar.c +++ b/libarchive/archive_write_set_format_gnutar.c @@ -422,15 +422,17 @@ archive_format_gnutar_header(struct archive_write *a, char h[512], /* TODO: How does GNU tar handle large UIDs? */ if (format_octal(archive_entry_uid(entry), h + GNUTAR_uid_offset, GNUTAR_uid_size)) { - archive_set_error(&a->archive, ERANGE, "Numeric user ID %d too large", - archive_entry_uid(entry)); + archive_set_error(&a->archive, ERANGE, + "Numeric user ID %jd too large", + (intmax_t)archive_entry_uid(entry)); ret = ARCHIVE_FAILED; } /* TODO: How does GNU tar handle large GIDs? */ if (format_octal(archive_entry_gid(entry), h + GNUTAR_gid_offset, GNUTAR_gid_size)) { - archive_set_error(&a->archive, ERANGE, "Numeric group ID %d too large", - archive_entry_gid(entry)); + archive_set_error(&a->archive, ERANGE, + "Numeric group ID %jd too large", + (intmax_t)archive_entry_gid(entry)); ret = ARCHIVE_FAILED; }