summaryrefslogtreecommitdiff
path: root/lib/replace
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-06-01 16:04:19 +0200
committerGünther Deschner <gd@samba.org>2010-06-01 16:49:24 +0200
commitfc9644a7d6bbf4f02c5cb1ce9fc5b3f3ddb66d2a (patch)
tree703eb9331bdb005aca38c63d49383a10ce2934de /lib/replace
parent3bae05d286b54ccb8c4d624c7f305bd84138c454 (diff)
downloadsamba-fc9644a7d6bbf4f02c5cb1ce9fc5b3f3ddb66d2a.tar.gz
samba-fc9644a7d6bbf4f02c5cb1ce9fc5b3f3ddb66d2a.tar.bz2
samba-fc9644a7d6bbf4f02c5cb1ce9fc5b3f3ddb66d2a.zip
lib/replace: fix some c++ build warnings in testsuite.
Guenther
Diffstat (limited to 'lib/replace')
-rw-r--r--lib/replace/test/testsuite.c8
1 files changed, 4 insertions, 4 deletions
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;