color_resource(lh_resource);
color_resource(lh_resource, colors, sorted_rscs);
stage2(GSListPtr sorted_rsc, GSListPtr sorted_nodes, GSListPtr operations){	int lpc = 0; 	// Set initial color	// Set color.candidate_nodes = all active nodes	no_color = create_color(NULL, TRUE);	colors = NULL; // leave the "no" color out of the list	current_color = create_color(node_list, FALSE);		// Set resource.color = color (all resources)	// Set resource.provisional = TRUE (all resources)	slist_iter(		this_resource, resource_t, sorted_rsc, lpc,		this_resource->color = current_color;		this_resource->provisional = TRUE;		);	pdebug("initialized resources to default color");  	// 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);		// next resource	}	return TRUE;}