summaryrefslogtreecommitdiff
path: root/source4/lib/talloc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-05 06:40:39 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:10 -0500
commit10d58661be5588e8877c696abf67a932d5a5373c (patch)
treedec50a1effecd971b34dc89c7663cd400598427b /source4/lib/talloc
parent5d363fa0ddcb8d6c6f13e4e975ce260c40780092 (diff)
downloadsamba-10d58661be5588e8877c696abf67a932d5a5373c.tar.gz
samba-10d58661be5588e8877c696abf67a932d5a5373c.tar.bz2
samba-10d58661be5588e8877c696abf67a932d5a5373c.zip
r18064: merge from samba3
metze (This used to be commit c60deff667941e462fd9c8a894a723c792fe465e)
Diffstat (limited to 'source4/lib/talloc')
-rw-r--r--source4/lib/talloc/testsuite.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c
index 8640e9475e..ae533399bc 100644
--- a/source4/lib/talloc/testsuite.c
+++ b/source4/lib/talloc/testsuite.c
@@ -609,6 +609,14 @@ static BOOL test_realloc(void)
return True;
}
+struct el2 {
+ const char *name;
+};
+
+struct el1 {
+ int count;
+ struct el2 **list, **list2, **list3;
+};
/*
test realloc with a child
@@ -616,12 +624,7 @@ static BOOL test_realloc(void)
static BOOL test_realloc_child(void)
{
void *root;
- struct el1 {
- int count;
- struct el2 {
- const char *name;
- } **list, **list2, **list3;
- } *el1;
+ struct el1 *el1;
struct el2 *el2;
printf("TESTING REALLOC WITH CHILD\n");