]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r18048: More nested structures
authorVolker Lendecke <vlendec@samba.org>
Mon, 4 Sep 2006 19:50:30 +0000 (19:50 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:43:24 +0000 (11:43 -0500)
(This used to be commit 20fcce5ceb701cfdcdc37172d7811bc6a7a554c3)

source3/lib/talloctort.c

index 8640e9475eadf84092be564582f2b0961a45f185..ae533399bc65172613c428c1ecd7c9181f3c369a 100644 (file)
@@ -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");