set_xml_property_copy(node_entry, XML_ATTR_TSTAMP, getNow()); 
set_node_tstamp(node_entry); 
add_xmlnode_to_cibToResource(xmlNodePtr cib,			     const char *res_id,			     const char *node_id,			     const char *weight){	xmlNodePtr resource = NULL, node_entry = NULL;	resource = findResource(cib, res_id);	if (resource != NULL)	{		if (findHaNode(cib, node_id) == NULL)		{			cl_log(LOG_CRIT,			       "Node (%s) does not exist, cannot be added "			       "to Resource (%s).", node_id, res_id);				FNRET(-1);		}		CRM_DEBUG3("Attempting to add allowed " XML_CIB_TAG_NODE			   " (%s) to " XML_CIB_TAG_RESOURCE " (%s).",			   node_id, res_id);			node_entry = find_entity(resource, "node", node_id, FALSE);		if (node_entry == NULL)			node_entry = create_xml_node(resource, "node");		else			CRM_DEBUG3("Allowed node (%s) already present for "				   XML_CIB_TAG_RESOURCE " (%s), updating.",				   node_id, res_id);			set_xml_property_copy(node_entry,				      XML_ATTR_ID,				      node_id);		set_xml_property_copy(node_entry,				      XML_CIB_ATTR_WEIGHT,				      weight);		set_xml_property_copy(node_entry,				      XML_ATTR_TSTAMP,				      getNow());	}	else	{		cl_log(LOG_CRIT,		       "%s (%s) does not exist, cannot add allowed %s (%s)",		       XML_CIB_TAG_RESOURCE,		       res_id,		       XML_CIB_TAG_NODE,		       node_id);		FNRET(-2);	}	FNRET(0);}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/a53b4db7876df963707c53c00bd8bc9d8d2dff09/cib.c/clean/crm/cib/cib.c