xmlNodePtr tmp1 = findNode(cib, XML_CIB_TAG_NODES); xmlNodePtr tmp2 = findNode(cib, XML_CIB_TAG_RESOURCES); xmlNodePtr tmp3 = findNode(cib, XML_CIB_TAG_CONSTRAINTS); xmlNodePtr tmp4 = findNode(cib, XML_CIB_TAG_STATUS);
xmlNodePtr tmp1 = find_xmlnode(cib, XML_CIB_TAG_NODES); xmlNodePtr tmp2 = find_xmlnode(cib, XML_CIB_TAG_RESOURCES); xmlNodePtr tmp3 = find_xmlnode(cib, XML_CIB_TAG_CONSTRAINTS); xmlNodePtr tmp4 = find_xmlnode(cib, XML_CIB_TAG_STATUS);
verifyCibXml(xmlNodePtr cib){    if(cib == NULL)    {	cl_log(LOG_INFO, "XML Buffer was empty.");	FNRET(FALSE);    }    xmlNodePtr tmp1 = findNode(cib, XML_CIB_TAG_NODES);    xmlNodePtr tmp2 = findNode(cib, XML_CIB_TAG_RESOURCES);    xmlNodePtr tmp3 = findNode(cib, XML_CIB_TAG_CONSTRAINTS);    xmlNodePtr tmp4 = findNode(cib, XML_CIB_TAG_STATUS);        if(tmp1 == NULL || tmp2 == NULL || tmp3 == NULL || tmp4 == NULL)    {	xmlChar *mem = NULL;	int size = 0;	xmlDocDumpMemory(cib->doc, &mem, &size);	cl_log(LOG_CRIT, "Not all required sections were present. Sections [%s, %s, %s, %s]\nCib was: %s", tmp1 == NULL? "ok":"null", tmp2 == NULL? "ok":"null", tmp3 == NULL? "ok":"null", tmp4 == NULL? "ok":"null", (char*)mem);	FNRET(FALSE);    }    // more integrity tests    FNRET(TRUE);}