apr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i...@apache.org
Subject svn commit: r1770489 - /apr/apr/trunk/test/testfile.c
Date Sat, 19 Nov 2016 12:03:06 GMT
Author: ivan
Date: Sat Nov 19 12:03:06 2016
New Revision: 1770489

URL: http://svn.apache.org/viewvc?rev=1770489&view=rev
Log:
Follow-up to r1770471: resolve two compiler warnings in testfile.c.

Modified:
    apr/apr/trunk/test/testfile.c

Modified: apr/apr/trunk/test/testfile.c
URL: http://svn.apache.org/viewvc/apr/apr/trunk/test/testfile.c?rev=1770489&r1=1770488&r2=1770489&view=diff
==============================================================================
--- apr/apr/trunk/test/testfile.c (original)
+++ apr/apr/trunk/test/testfile.c Sat Nov 19 12:03:06 2016
@@ -1036,7 +1036,6 @@ static void test_append(abts_case *tc, v
     apr_file_t *f1;
     apr_file_t *f2;
     const char *fname = "data/testappend.dat";
-    apr_status_t rv;
     apr_int32_t flags = APR_FOPEN_CREATE | APR_FOPEN_READ | APR_FOPEN_WRITE | APR_FOPEN_APPEND;
     char buf[128];
     apr_off_t offset;
@@ -1056,7 +1055,7 @@ static void test_append(abts_case *tc, v
     offset = 0;
     APR_ASSERT_SUCCESS(tc, "seek should succeed",
         apr_file_seek(f1, APR_CUR, &offset));
-    ABTS_INT_EQUAL(tc, 2, offset);
+    ABTS_INT_EQUAL(tc, 2, (int) offset);
 
     APR_ASSERT_SUCCESS(tc, "write should succeed",
         apr_file_puts("w2", f2));



Mime
View raw message