peers_s = crm_itoa(active); set_xml_property_copy(xml_obj, XML_ATTR_NUMPEERS, peers_s); crm_debug("Set peers to %s", peers_s); crm_free(peers_s);
current = crm_atoi(current_s, "0"); if(current != active) { peers_s = crm_itoa(active); set_xml_property_copy(xml_obj, XML_ATTR_NUMPEERS, peers_s); crm_debug("Set peers to %s", peers_s); crm_free(peers_s); }
set_connected_peers(crm_data_t *xml_obj){	int active = 0;	char *peers_s = NULL;	g_hash_table_foreach(peer_hash, GHFunc_count_peers, &active);	peers_s = crm_itoa(active);	set_xml_property_copy(xml_obj, XML_ATTR_NUMPEERS, peers_s);	crm_debug("Set peers to %s", peers_s);	crm_free(peers_s);	return active;}