diff options
author | Stefan Metzmacher <metze@samba.org> | 2006-09-05 15:28:28 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 11:43:28 -0500 |
commit | 027c7964eeb658d47e4aa2b974cc0c6089dbdba0 (patch) | |
tree | 139c0cbbffd341fc54c410ecb6796d41a73a89c3 | |
parent | 9d71a037b10325dd5a258f59b8434b9fa158462e (diff) | |
download | samba-027c7964eeb658d47e4aa2b974cc0c6089dbdba0.tar.gz samba-027c7964eeb658d47e4aa2b974cc0c6089dbdba0.tar.xz samba-027c7964eeb658d47e4aa2b974cc0c6089dbdba0.zip |
r18099: merge from samba4 to make tcc happy as the same struct name was used in multiple
places and that only works if they're all in a local scope
metze
-rw-r--r-- | source/lib/talloctort.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/source/lib/talloctort.c b/source/lib/talloctort.c index ae533399bc6..766cf039c0e 100644 --- a/source/lib/talloctort.c +++ b/source/lib/talloctort.c @@ -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"); |