You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by br...@apache.org on 2020/05/06 15:50:45 UTC
svn commit: r1877442 - /apr/apr/trunk/test/testfile.c
Author: brane
Date: Wed May 6 15:50:44 2020
New Revision: 1877442
URL: http://svn.apache.org/viewvc?rev=1877442&view=rev
Log:
testfile: silence -Wstring-plus-int warnings.
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=1877442&r1=1877441&r2=1877442&view=diff
==============================================================================
--- apr/apr/trunk/test/testfile.c (original)
+++ apr/apr/trunk/test/testfile.c Wed May 6 15:50:44 2020
@@ -262,7 +262,7 @@ static void test_seek(abts_case *tc, voi
rv = apr_file_read(filetest, str, &nbytes);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
ABTS_SIZE_EQUAL(tc, strlen(TESTSTR) - 5, nbytes);
- ABTS_STR_EQUAL(tc, TESTSTR + 5, str);
+ ABTS_STR_EQUAL(tc, &TESTSTR[5], str);
apr_file_close(filetest);
@@ -283,7 +283,7 @@ static void test_seek(abts_case *tc, voi
rv = apr_file_read(filetest, str, &nbytes);
ABTS_INT_EQUAL(tc, APR_SUCCESS, rv);
ABTS_SIZE_EQUAL(tc, 5, nbytes);
- ABTS_STR_EQUAL(tc, TESTSTR + strlen(TESTSTR) - 5, str);
+ ABTS_STR_EQUAL(tc, &TESTSTR[strlen(TESTSTR) - 5], str);
apr_file_close(filetest);
}