Author: wrowe
Date: Thu Feb 9 15:14:46 2006
New Revision: 376481
URL: http://svn.apache.org/viewcvs?rev=376481&view=rev
Log:
Remove several more warnings, including the need to cast our file size
into a size_t 'in-memory' quantity.
Backports 376408
Modified:
apr/apr/branches/1.2.x/test/testmmap.c
Modified: apr/apr/branches/1.2.x/test/testmmap.c
URL: http://svn.apache.org/viewcvs/apr/apr/branches/1.2.x/test/testmmap.c?rev=376481&r1=376480&r2=376481&view=diff
==============================================================================
--- apr/apr/branches/1.2.x/test/testmmap.c (original)
+++ apr/apr/branches/1.2.x/test/testmmap.c Thu Feb 9 15:14:46 2006
@@ -84,14 +84,15 @@
rv = apr_file_info_get(&finfo, APR_FINFO_NORM, thefile);
ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
- ABTS_INT_EQUAL(tc, fsize, finfo.size);
+ ABTS_ASSERT(tc, "File size mismatch", fsize == finfo.size);
}
static void test_mmap_create(abts_case *tc, void *data)
{
apr_status_t rv;
- rv = apr_mmap_create(&themmap, thefile, 0, finfo.size, APR_MMAP_READ, p);
+ rv = apr_mmap_create(&themmap, thefile, 0, (apr_size_t) finfo.size,
+ APR_MMAP_READ, p);
ABTS_PTR_NOTNULL(tc, themmap);
ABTS_INT_EQUAL(tc, rv, APR_SUCCESS);
}
|