summaryrefslogtreecommitdiff
path: root/src/tests/eo/children/children_main.c
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-09 15:47:28 +0000
committerTom Hacohen <tom@stosb.com>2016-03-09 16:09:14 +0000
commit4f949a2757b6332306264d7f126b15ba7bfd37d4 (patch)
treeec3a3aacfe34b2b3e75f3fc4d85531f6f4957c9d /src/tests/eo/children/children_main.c
parentdf83edaeb6b10324868f28e8f1910147ba22e5e5 (diff)
downloadefl-4f949a2757b6332306264d7f126b15ba7bfd37d4.tar.gz
Automatic migration to the new eo_add syntax.
Diffstat (limited to 'src/tests/eo/children/children_main.c')
-rw-r--r--src/tests/eo/children/children_main.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/tests/eo/children/children_main.c b/src/tests/eo/children/children_main.c
index 9d30277333..25e9f9fcd4 100644
--- a/src/tests/eo/children/children_main.c
+++ b/src/tests/eo/children/children_main.c
@@ -22,11 +22,15 @@ main(int argc, char *argv[])
eo_init();
- Eo *parent = eo_add(SIMPLE_CLASS, NULL);
-
- Eo *child1 = eo_add(SIMPLE_CLASS, parent);
- Eo *child2 = eo_add(SIMPLE_CLASS, parent);
- Eo *child3 = eo_add(SIMPLE_CLASS, parent);
+ Eo *parent = NULL;
+ eo_add(&parent, SIMPLE_CLASS, NULL);
+
+ Eo *child1 = NULL;
+ eo_add(&child1, SIMPLE_CLASS, parent);
+ Eo *child2 = NULL;
+ eo_add(&child2, SIMPLE_CLASS, parent);
+ Eo *child3 = NULL;
+ eo_add(&child3, SIMPLE_CLASS, parent);
iter = eo_children_iterator_new(parent);
fail_if(!iter);