resource_t *lh_resource = (resource_t*)g_slist_nth_data(sorted_rsc, lpc); 
cl_log(LOG_DEBUG, "Processing resource %d", lpc); resource_t *lh_resource = (resource_t*)g_slist_nth_data(sorted_rsc, lpc); 
stage2(GSListPtr sorted_rsc,        GSListPtr sorted_nodes,        GSListPtr operations){  int lpc = 0; 	// Set initial color	// Set color.candidate_nodes = all active nodes	current_color = cl_malloc(sizeof(color_t));	current_color->id = 0;	current_color->local_weight = 1.0;	current_color->details->chosen_node = NULL; 	current_color->details->candidate_nodes = node_list_dup(sorted_nodes);	g_slist_append(colors, current_color);  	// Set resource.color = color (all resources)	// Set resource.provisional = TRUE (all resources)	for(lpc = 0; lpc < g_slist_length(sorted_rsc); lpc++) {	  resource_t *this_resource = (resource_t*)g_slist_nth_data(sorted_rsc, lpc);		this_resource->color = current_color;		g_slist_append(this_resource->candidate_colors, current_color);		this_resource->provisional = TRUE;	}  	// Take (next) highest resource	for(lpc = 0; lpc < g_slist_length(sorted_rsc); lpc++) {	  resource_t *lh_resource = (resource_t*)g_slist_nth_data(sorted_rsc, lpc);		// if resource.provisional == FALSE, repeat 		if(lh_resource->provisional == FALSE) {			// already processed this resource			continue;		}    		color_resource(lh_resource, sorted_rsc, colors);		// next resource	}	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/db8433868c8c969b4872da3b0ab348b28883713b/pengine.c/buggy/crm/pengine/pengine.c