int lpc = 0; g_slist_sort(nodes, sort_node_weight); 
int lpc = 0; nodes = g_slist_sort(nodes, sort_node_weight); 
choose_node_from_list(GSListPtr colors, color_t *color, GSListPtr nodes){	/*	  1. Sort by weight	  2. color.chosen_node = highest wieghted node 	  3. remove color.chosen_node from all other colors	*/  int lpc = 0;  g_slist_sort(nodes, sort_node_weight);	color->details->chosen_node = (node_t*)g_slist_nth_data(nodes, 0);	for(lpc = 0; lpc < g_slist_length(colors); lpc++) {	  color_t *color_n = (color_t*)g_slist_nth_data(colors, lpc);		g_slist_remove(color_n->details->candidate_nodes,			       color->details->chosen_node);	}	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/db8433868c8c969b4872da3b0ab348b28883713b/pengine.c/buggy/crm/pengine/pengine.c