xmlNodePtr parent = NULL, cib_updates = NULL, new_section = NULL, old_section = NULL;
crm_data_t *parent = NULL, *cib_updates = NULL, *new_section = NULL, *old_section = NULL;
replace_section(const char *section, xmlNodePtr tmpCib, xmlNodePtr fragment){	xmlNodePtr parent = NULL,		cib_updates = NULL,		new_section = NULL,		old_section = NULL;		cib_updates = find_xml_node(fragment, XML_TAG_CIB, TRUE);	/* find the old and new versions of the section */	new_section = get_object_root(section, cib_updates);	old_section = get_object_root(section, tmpCib);		if(old_section == NULL) {		crm_err("The CIB is corrupt, cannot replace missing section %s",		       section);		return FALSE;	} else if(new_section == NULL) {		crm_err("The CIB is corrupt, cannot set section %s to nothing",		       section);		return FALSE;	}	parent = old_section->parent;		/* unlink and free the old one */	unlink_xml_node(old_section);	free_xml(old_section);	/* add the new copy */	add_node_copy(parent, new_section);	return TRUE;}