summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorVolker Lendecke <vlendec@samba.org>2006-08-17 11:54:23 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:41 -0500
commit0691ed55cade8093213db38555edb536ee0c557d (patch)
treed4c196a01a7d5851f365940c77a8d3813e9db811 /source3/lib
parentaa2138ed5badedc5754978b61db1042617857690 (diff)
downloadsamba-0691ed55cade8093213db38555edb536ee0c557d.tar.gz
samba-0691ed55cade8093213db38555edb536ee0c557d.tar.bz2
samba-0691ed55cade8093213db38555edb536ee0c557d.zip
r17584: Some C++ Warnings
(This used to be commit f6194cf4b263454bbdf180a7d014ffc3498df497)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/talloctort.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/talloctort.c b/source3/lib/talloctort.c
index 3ce45e2071..460360613c 100644
--- a/source3/lib/talloctort.c
+++ b/source3/lib/talloctort.c
@@ -403,7 +403,7 @@ static BOOL test_misc(void)
talloc_report(root, stdout);
- p2 = talloc_zero_size(p1, 20);
+ p2 = (char *)talloc_zero_size(p1, 20);
if (p2[19] != 0) {
printf("Failed to give zero memory\n");
return False;
@@ -465,7 +465,7 @@ static BOOL test_misc(void)
talloc_unlink(NULL, p1);
p1 = talloc_named_const(root, 10, "p1");
- p2 = talloc_named_const(root, 20, "p2");
+ p2 = (char *)talloc_named_const(root, 20, "p2");
talloc_reference(p1, p2);
talloc_report_full(root, stdout);
talloc_unlink(root, p2);
@@ -477,7 +477,7 @@ static BOOL test_misc(void)
talloc_unlink(root, p1);
p1 = talloc_named_const(root, 10, "p1");
- p2 = talloc_named_const(root, 20, "p2");
+ p2 = (char *)talloc_named_const(root, 20, "p2");
talloc_reference(NULL, p2);
talloc_report_full(root, stdout);
talloc_unlink(root, p2);