From: Tim Kientzle Date: Mon, 29 Dec 2008 01:19:21 +0000 (-0500) Subject: Cast away some compiler warnings from Visual Studio X-Git-Tag: v2.7.0~527 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b24cd1b95b7f5aaf5aa5d44d785be240d181e663;p=thirdparty%2Flibarchive.git Cast away some compiler warnings from Visual Studio SVN-Revision: 313 --- diff --git a/libarchive/test/test_acl_pax.c b/libarchive/test/test_acl_pax.c index f9e88baf4..b7c0c54df 100644 --- a/libarchive/test/test_acl_pax.c +++ b/libarchive/test/test_acl_pax.c @@ -454,7 +454,7 @@ DEFINE_TEST(test_acl_pax) /* Write out the data we generated to a file for manual inspection. */ assert(-1 < (fd = open("testout", O_WRONLY | O_CREAT | O_TRUNC, 0775))); - assert(used == (size_t)write(fd, buff, used)); + assert(used == (size_t)write(fd, buff, (unsigned int)used)); close(fd); /* Write out the reference data to a file for manual inspection. */ @@ -466,7 +466,7 @@ DEFINE_TEST(test_acl_pax) failure("Generated pax archive does not match reference; check 'testout' and 'reference' files."); assert(0 == memcmp(buff, reference, sizeof(reference))); failure("Generated pax archive does not match reference; check 'testout' and 'reference' files."); - assertEqualInt(used, sizeof(reference)); + assertEqualInt((int)used, sizeof(reference)); /* Read back each entry and check that the ACL data is right. */ assert(NULL != (a = archive_read_new()));