summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-08-22 18:49:11 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:16:29 -0500
commit31356c02838a678013f0ad9416f0b101b755bd90 (patch)
tree7702af7919723cd008ca8023fd0f53df942b12fd /source4
parentcc973cbd7776ba03a08047ca7e6bef7700bbf37d (diff)
downloadsamba-31356c02838a678013f0ad9416f0b101b755bd90.tar.gz
samba-31356c02838a678013f0ad9416f0b101b755bd90.tar.bz2
samba-31356c02838a678013f0ad9416f0b101b755bd90.zip
r17712: fix compiler warning
metze (This used to be commit 669d1e5f923a5414b8ad2537da1723d50a240387)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/talloc/testsuite.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c
index 947540d940..7cd6429085 100644
--- a/source4/lib/talloc/testsuite.c
+++ b/source4/lib/talloc/testsuite.c
@@ -906,6 +906,11 @@ static BOOL test_loop(void)
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 @@ static BOOL test_free_parent_deny_child(void)
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);