summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrane <brane@13f79535-47bb-0310-9956-ffa450edef68>2020-05-06 15:50:44 +0000
committerbrane <brane@13f79535-47bb-0310-9956-ffa450edef68>2020-05-06 15:50:44 +0000
commitcfc959a388a40dd0486abea5fa0c66cdb83f4b0d (patch)
treec942be3c3ef6056da326d307b9ae44f9624b466d
parent70e1a5421d2db9a00e3a5a59c321965f66136f93 (diff)
downloadlibapr-cfc959a388a40dd0486abea5fa0c66cdb83f4b0d.tar.gz
testfile: silence -Wstring-plus-int warnings.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@1877442 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--test/testfile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/testfile.c b/test/testfile.c
index 07534b622..125ffba0f 100644
--- a/test/testfile.c
+++ b/test/testfile.c
@@ -262,7 +262,7 @@ static void test_seek(abts_case *tc, void *data)
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, void *data)
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);
}