set_xml_property_copy(xml_node, XML_ATTR_TSTAMP, getNow()); 
set_node_tstamp(xml_node); 
newStatus(const char *res_id, const char *node_id, const char *instance){	/* Todo:	 * - verify the node and resource exist	 * - get max_instances from resource or update later	 */	xmlNodePtr xml_node = NULL;	char *id = (char*)ha_malloc(128*(sizeof(char)));	FNIN();		sprintf(id, "%s-%s", res_id, instance);	CRM_DEBUG2("Creating " XML_CIB_TAG_STATUS " (%s).", id);    	xml_node = create_xml_node(NULL, XML_CIB_TAG_STATE);	set_xml_property_copy(xml_node,			      XML_ATTR_ID,			      id);		set_xml_property_copy(xml_node,			      XML_CIB_ATTR_RESID,			      res_id);		set_xml_property_copy(xml_node,			      XML_CIB_ATTR_INSTANCE,			      instance);	set_xml_property_copy(xml_node,			      XML_CIB_ATTR_NODEID,			      node_id);		set_xml_property_copy(xml_node,			      XML_CIB_ATTR_SOURCE,			      "none");		set_xml_property_copy(xml_node,			      XML_ATTR_TSTAMP,			      getNow());	// a sensible default... parent can update later if required 	set_xml_property_copy(xml_node,			      XML_CIB_ATTR_MAXINSTANCE,			      instance);	set_xml_property_copy(xml_node,			      XML_CIB_ATTR_RESSTATUS,			      CIB_VAL_RESSTATUS_DEFAULT);	ha_free(id);	FNRET(xml_node);}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/a53b4db7876df963707c53c00bd8bc9d8d2dff09/cibprimatives.c/buggy/crm/cib/cibprimatives.c