pdebug(print_color("Created color", new_color, FALSE)); /*  Add any new color to the list of candidate_colors for * resources that havent been decided yet */ for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) { resource_t *rh_resource = (resource_t*)g_slist_nth_data(rsc_list, lpc); add_color_to_rsc(rh_resource, new_color); 
pdebug(print_color("Created color", new_color, TRUE));  if(create_only == FALSE) { colors = g_slist_append(colors, new_color);  /*  Add any new color to the list of candidate_colors for * resources that havent been decided yet */ for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) { resource_t *rh_resource = (resource_t*)g_slist_nth_data(rsc_list, lpc); add_color_to_rsc(rh_resource, new_color); } 
create_color(GSListPtr nodes){	int lpc = 0;	color_t *new_color = cl_malloc(sizeof(color_t));	new_color->id = color_id++;	new_color->local_weight = 0; // not used here	new_color->details = cl_malloc(sizeof(struct color_shared_s));	new_color->details->chosen_node = NULL; 	new_color->details->candidate_nodes = node_list_dup(nodes);    	colors = g_slist_append(colors, new_color);      	pdebug(print_color("Created color", new_color, FALSE));	/*  Add any new color to the list of candidate_colors for	 * resources that havent been decided yet 	 */	for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) {		resource_t *rh_resource = 			(resource_t*)g_slist_nth_data(rsc_list, lpc);		add_color_to_rsc(rh_resource, new_color);	}			return new_color;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/a3ce75677d1dbba44868d0c952600abe4b59a8cb/utils.c/clean/crm/pengine/utils.c