xmlNodePtr res = NULL; FNIN(); CRM_DEBUG2("Update: " XML_CIB_TAG_NODE " (%s).", ID(anXmlNode));
const char *id = ID(anXmlNode); if (id == NULL || strlen(id) < 1) { return CIBRES_MISSING_ID; }  CRM_DEBUG2("Updating " XML_CIB_TAG_NODE " (%s)...", id);
updateHaNode(xmlNodePtr cib, cibHaNode *anXmlNode){	xmlNodePtr res = NULL;	FNIN();	CRM_DEBUG2("Update: " XML_CIB_TAG_NODE " (%s).", ID(anXmlNode));	res = findHaNode(cib, ID(anXmlNode));	if (res == NULL) {		cl_log(LOG_INFO,		       "Update: " XML_CIB_TAG_NODE		       " (%s) did not exist, adding.",		       ID(anXmlNode));		addHaNode(cib, anXmlNode);	} else {		copy_in_properties(res, anXmlNode);		}	FNRET(0);}