svn commit: r191586 - head/lib/libarchive
Tim Kientzle
kientzle at FreeBSD.org
Mon Apr 27 19:14:44 UTC 2009
Author: kientzle
Date: Mon Apr 27 19:14:43 2009
New Revision: 191586
URL: http://svn.freebsd.org/changeset/base/191586
Log:
ino_t varies across platforms; casting (int) here avoids
various pointless complaints.
Modified:
head/lib/libarchive/archive_write_set_format_cpio.c
Modified: head/lib/libarchive/archive_write_set_format_cpio.c
==============================================================================
--- head/lib/libarchive/archive_write_set_format_cpio.c Mon Apr 27 18:59:40 2009 (r191585)
+++ head/lib/libarchive/archive_write_set_format_cpio.c Mon Apr 27 19:14:43 2009 (r191586)
@@ -125,8 +125,9 @@ archive_write_cpio_header(struct archive
* re-using the ones off the disk. That way, the 18-bit c_ino
* field only limits the number of files in the archive.
*/
- if (archive_entry_ino(entry) > 0777777) {
- archive_set_error(&a->archive, ERANGE, "large inode number truncated");
+ if ((int)archive_entry_ino(entry) > 0777777) {
+ archive_set_error(&a->archive, ERANGE,
+ "large inode number truncated");
ret = ARCHIVE_WARN;
}
More information about the svn-src-head
mailing list