old_value = xmlGetProp(xml_obj, field);
old_value = crm_element_value(xml_obj, field);
cib_update_counter(xmlNodePtr xml_obj, const char *field, gboolean reset){	char *new_value = NULL;	char *old_value = NULL;	int  int_value  = -1;	/* modify the timestamp */	set_node_tstamp(xml_obj);	if(reset == FALSE) {		old_value = xmlGetProp(xml_obj, field);	}	if(old_value != NULL) {		crm_malloc(new_value, 128*(sizeof(char)));		int_value = atoi(old_value);		sprintf(new_value, "%d", ++int_value);	} else {		new_value = crm_strdup("1");	}	crm_trace("%s %d(%s)->%s",		  field, int_value, crm_str(old_value), crm_str(new_value));	set_xml_property_copy(xml_obj, field, new_value);	crm_free(new_value);	if(safe_str_eq(field, XML_ATTR_NUMUPDATES)) {		set_connected_peers(xml_obj);		if(cib_have_quorum) {			set_xml_property_copy(				xml_obj, XML_ATTR_HAVE_QUORUM, XML_BOOLEAN_TRUE);		} else {			set_xml_property_copy(				xml_obj, XML_ATTR_HAVE_QUORUM, XML_BOOLEAN_FALSE);		}	}		return cib_ok;}