]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
r18099: merge from samba4 to make tcc happy as the same struct name was used in multiple
authorStefan Metzmacher <metze@samba.org>
Tue, 5 Sep 2006 15:28:28 +0000 (15:28 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 16:43:28 +0000 (11:43 -0500)
places and that only works if they're all in a local scope

metze
(This used to be commit 027c7964eeb658d47e4aa2b974cc0c6089dbdba0)

source3/lib/talloctort.c

index ae533399bc65172613c428c1ecd7c9181f3c369a..766cf039c0e758783188450f7cc9a4b11031bf82 100644 (file)
@@ -609,23 +609,19 @@ 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
 */
 static BOOL test_realloc_child(void)
 {
        void *root;
-       struct el1 *el1;
-       struct el2 *el2;
+       struct el2 {
+               const char *name;
+       } *el2; 
+       struct el1 {
+               int count;
+               struct el2 **list, **list2, **list3;
+       } *el1;
 
        printf("TESTING REALLOC WITH CHILD\n");