diff options
author | kientzle <kientzle@FreeBSD.org> | 2009-04-27 19:14:43 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2009-04-27 19:14:43 +0000 |
commit | da7d877bb18959a271a62d685822f1be96ec7965 (patch) | |
tree | 06ede88c597183e1dacfe9f0a215f6bf4080a438 | |
parent | 2d15a97dfa737b4ff043559cd6a72649c60e989a (diff) | |
download | FreeBSD-src-da7d877bb18959a271a62d685822f1be96ec7965.zip FreeBSD-src-da7d877bb18959a271a62d685822f1be96ec7965.tar.gz |
ino_t varies across platforms; casting (int) here avoids
various pointless complaints.
-rw-r--r-- | lib/libarchive/archive_write_set_format_cpio.c | 5 |
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; } |