node_copy((node_t*)g_slist_nth_data(nodes, 0));
node_copy((node_t*)g_list_nth_data(nodes, 0));
choose_node_from_list(GSListPtr colors, color_t *color, GSListPtr nodes){	int lpc;	/*	  1. Sort by weight	  2. color.chosen_node = highest wieghted node 	  3. remove color.chosen_node from all other colors	*/	nodes = g_slist_sort(nodes, sort_node_weight);	color->details->chosen_node =		node_copy((node_t*)g_slist_nth_data(nodes, 0));	if(color->details->chosen_node == NULL) {		crm_err("Could not allocate a node for color %d",			color->id);		return FALSE;	}	slist_iter(		color_n, color_t, colors, lpc,				node_t *other_node =			pe_find_node(color_n->details->candidate_nodes,				     color->details->chosen_node->details->id);		if(color_n != color) {			color_n->details->candidate_nodes =				g_slist_remove(color_n->details->candidate_nodes,					       other_node);			//		crm_free(other_node);		}			);		return TRUE;}