svn commit: samba r17712 - in branches/SAMBA_4_0/source/lib/talloc:
.
metze at samba.org
metze at samba.org
Tue Aug 22 18:49:11 GMT 2006
Author: metze
Date: 2006-08-22 18:49:11 +0000 (Tue, 22 Aug 2006)
New Revision: 17712
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=17712
Log:
fix compiler warning
metze
Modified:
branches/SAMBA_4_0/source/lib/talloc/testsuite.c
Changeset:
Modified: branches/SAMBA_4_0/source/lib/talloc/testsuite.c
===================================================================
--- branches/SAMBA_4_0/source/lib/talloc/testsuite.c 2006-08-22 18:09:49 UTC (rev 17711)
+++ branches/SAMBA_4_0/source/lib/talloc/testsuite.c 2006-08-22 18:49:11 UTC (rev 17712)
@@ -906,6 +906,11 @@
return True;
}
+static int fail_destructor_str(char *ptr)
+{
+ return -1;
+}
+
static BOOL test_free_parent_deny_child(void)
{
char *top = talloc_new(NULL);
@@ -918,7 +923,7 @@
level2 = talloc_strdup(level1, "level2");
level3 = talloc_strdup(level2, "level3");
- talloc_set_destructor(level3, fail_destructor);
+ talloc_set_destructor(level3, fail_destructor_str);
talloc_free(level1);
talloc_set_destructor(level3, NULL);
More information about the samba-cvs
mailing list