summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-09-05 15:03:06 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:17:16 -0500
commit7a29fb6dd77922e179300a458949bc22280bdb34 (patch)
treee264d7a887f3300c8b2cf0f312067070d7bd270a /source4
parentf9a175ae24f301597b489e02191a4b740cee1f4b (diff)
downloadsamba-7a29fb6dd77922e179300a458949bc22280bdb34.tar.gz
samba-7a29fb6dd77922e179300a458949bc22280bdb34.tar.bz2
samba-7a29fb6dd77922e179300a458949bc22280bdb34.zip
r18096: try to make tcc happy and don't the same struct names in a global and
a local scope metze (This used to be commit b787259365eb3dbbc5e8a82a95f0beeea0015682)
Diffstat (limited to 'source4')
-rw-r--r--source4/lib/talloc/testsuite.c18
1 files changed, 7 insertions, 11 deletions
diff --git a/source4/lib/talloc/testsuite.c b/source4/lib/talloc/testsuite.c
index ae533399bc..766cf039c0 100644
--- a/source4/lib/talloc/testsuite.c
+++ b/source4/lib/talloc/testsuite.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");