summaryrefslogtreecommitdiffstats
path: root/lib/libarchive
diff options
context:
space:
mode:
authorkientzle <kientzle@FreeBSD.org>2009-04-27 19:14:43 +0000
committerkientzle <kientzle@FreeBSD.org>2009-04-27 19:14:43 +0000
commitda7d877bb18959a271a62d685822f1be96ec7965 (patch)
tree06ede88c597183e1dacfe9f0a215f6bf4080a438 /lib/libarchive
parent2d15a97dfa737b4ff043559cd6a72649c60e989a (diff)
downloadFreeBSD-src-da7d877bb18959a271a62d685822f1be96ec7965.zip
FreeBSD-src-da7d877bb18959a271a62d685822f1be96ec7965.tar.gz
ino_t varies across platforms; casting (int) here avoids
various pointless complaints.
Diffstat (limited to 'lib/libarchive')
-rw-r--r--lib/libarchive/archive_write_set_format_cpio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libarchive/archive_write_set_format_cpio.c b/lib/libarchive/archive_write_set_format_cpio.c
index ef88375..fd7e8a9 100644
--- a/lib/libarchive/archive_write_set_format_cpio.c
+++ b/lib/libarchive/archive_write_set_format_cpio.c
@@ -125,8 +125,9 @@ archive_write_cpio_header(struct archive_write *a, struct archive_entry *entry)
* 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;
}
OpenPOWER on IntegriCloud