- for (state = ec_comp_group_get_state(grp); state != NULL;
- state = ec_pnode_get_parent(state)) {
- node = ec_pnode_get_node(state);
+ for (pstate = ec_comp_group_get_pstate(grp); pstate != NULL;
+ pstate = ec_pnode_get_parent(pstate)) {
+ node = ec_pnode_get_node(pstate);