From: Volker Lendecke Date: Mon, 4 Sep 2006 19:50:30 +0000 (+0000) Subject: r18048: More nested structures X-Git-Tag: samba-4.0.0alpha6~801^2~7725 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=040d9f785009214026c7f30e930ef2522d9cce99;p=thirdparty%2Fsamba.git r18048: More nested structures (This used to be commit 20fcce5ceb701cfdcdc37172d7811bc6a7a554c3) --- diff --git a/source3/lib/talloctort.c b/source3/lib/talloctort.c index 8640e9475ea..ae533399bc6 100644 --- a/source3/lib/talloctort.c +++ b/source3/lib/talloctort.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");