diff options
author | Andrew Tridgell <tridge@samba.org> | 2006-05-24 07:31:02 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:08:32 -0500 |
commit | a665cccd2ef81e704e90bb228bbd14c0afb031af (patch) | |
tree | 20ff8949a797c3435e586c12148f1a8aed9c731c /source4/lib/talloc/testsuite.c | |
parent | 574daba7951b64b6b877db55a92e5a66f3354b4f (diff) | |
download | samba-a665cccd2ef81e704e90bb228bbd14c0afb031af.tar.gz samba-a665cccd2ef81e704e90bb228bbd14c0afb031af.tar.bz2 samba-a665cccd2ef81e704e90bb228bbd14c0afb031af.zip |
r15852: patch from Rusty to make talloc_set_destructor() and talloc_steal()
type safe. This only works on recent gcc versions. With other
compilers it reverts to a non-typesafe cast
The patch also ensures that talloc_free() does not change error on
systems where free() can change errno
(This used to be commit babbff5f777642f559747f6d0697bc7c3a5e798d)
Diffstat (limited to 'source4/lib/talloc/testsuite.c')
-rw-r--r-- | source4/lib/talloc/testsuite.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c index 018d734cc3..f1b19041fa 100644 --- a/source4/lib/talloc/testsuite.c +++ b/source4/lib/talloc/testsuite.c @@ -850,7 +850,7 @@ static BOOL test_lifeless(void) static int loop_destructor_count; -static int test_loop_destructor(void *ptr) +static int test_loop_destructor(char *ptr) { printf("loop destructor\n"); loop_destructor_count++; |