- type_t ret = NULL;
- xbt_dict_foreach(root->children, cursor, child_name, child) {
- type_t found = recursiveGetType(name, child);
- if (found){
- if (ret == NULL){
- ret = found;
+ xbt_dict_cursor_t cursor = NULL;
+ xbt_dict_foreach(father->children, cursor, child_name, child) {
+ if (strcmp (child->name, name) == 0){
+ if (ret != NULL){
+ THROWF (tracing_error, 0, "there are two children types with the same name?");