From 31356c02838a678013f0ad9416f0b101b755bd90 Mon Sep 17 00:00:00 2001
From: Stefan Metzmacher <metze@samba.org>
Date: Tue, 22 Aug 2006 18:49:11 +0000
Subject: r17712: fix compiler warning

metze
(This used to be commit 669d1e5f923a5414b8ad2537da1723d50a240387)
---
 source4/lib/talloc/testsuite.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

(limited to 'source4/lib/talloc')

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);
 
-- 
cgit