Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Apr 2009 19:14:43 +0000 (UTC)
From:      Tim Kientzle <kientzle@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r191586 - head/lib/libarchive
Message-ID:  <200904271914.n3RJEhBn024041@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200904271914.n3RJEhBn024041>