g_slist_sort(rsc_list, sort_rsc_priority); 
rsc_list = g_slist_sort(rsc_list, sort_rsc_priority); 
unpack_resources(xmlNodePtr resources){	while(resources != NULL) {		const char *id = xmlGetProp(resources, "id");		const char *priority = xmlGetProp(resources, "priority");		float priority_f = atof(priority);				if(id == NULL) {			// error			continue;		}		resource_t *new_rsc = cl_malloc(sizeof(resource_t));		new_rsc->xml = resources; // copy first 		new_rsc->priority = priority_f; 		new_rsc->candidate_colors = g_slist_alloc();		new_rsc->color = NULL; 		new_rsc->provisional = TRUE; 		new_rsc->allowed_nodes = g_slist_alloc();    		new_rsc->constraints = g_slist_alloc(); 		new_rsc->id = cl_strdup(id);		g_slist_append(rsc_list, new_rsc);		resources = resources->next;	}	g_slist_sort(rsc_list, sort_rsc_priority);	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/db8433868c8c969b4872da3b0ab348b28883713b/pengine.c/buggy/crm/pengine/pengine.c