From fc9644a7d6bbf4f02c5cb1ce9fc5b3f3ddb66d2a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Tue, 1 Jun 2010 16:04:19 +0200 Subject: lib/replace: fix some c++ build warnings in testsuite. Guenther --- lib/replace/test/testsuite.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/replace/test/testsuite.c b/lib/replace/test/testsuite.c index 46697b5f19..1f242eb27a 100644 --- a/lib/replace/test/testsuite.c +++ b/lib/replace/test/testsuite.c @@ -1020,13 +1020,13 @@ static int test_memmem(void) printf("test: memmem\n"); - s = memmem("foo", 3, "fo", 2); + s = (char *)memmem("foo", 3, "fo", 2); if (strcmp(s, "foo") != 0) { printf(__location__ ": Failed memmem\n"); return false; } - s = memmem("foo", 3, "", 0); + s = (char *)memmem("foo", 3, "", 0); /* it is allowable for this to return NULL (as happens on FreeBSD) */ if (s && strcmp(s, "foo") != 0) { @@ -1034,13 +1034,13 @@ static int test_memmem(void) return false; } - s = memmem("foo", 4, "o", 1); + s = (char *)memmem("foo", 4, "o", 1); if (strcmp(s, "oo") != 0) { printf(__location__ ": Failed memmem\n"); return false; } - s = memmem("foobarfodx", 11, "fod", 3); + s = (char *)memmem("foobarfodx", 11, "fod", 3); if (strcmp(s, "fodx") != 0) { printf(__location__ ": Failed memmem\n"); return false; -- cgit