int lpc = 0; for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) { resource_t *rsc = g_slist_nth_data(rsc_list, lpc); int lpc2 = 0; 
cl_log(LOG_DEBUG, "Filtering nodes... %s", __FUNCTION__);  int lpc2 = 0; print_resource(rsc, FALSE);  for(lpc2 = 0; lpc2 < g_slist_length(rsc->allowed_nodes); lpc2++) { node_t *node = g_slist_nth_data(rsc->allowed_nodes, lpc2); print_node(node); if(node == NULL) { cl_log(LOG_ERR, "Invalid NULL node");  } else if(node->weight < 0.0) { cl_log(LOG_DEBUG, "removing:"); print_node(node); rsc->allowed_nodes = g_slist_remove(rsc->allowed_nodes,node); } 
filter_nodes(GSListPtr rsc_list){  int lpc = 0;	for(lpc = 0; lpc < g_slist_length(rsc_list); lpc++) {		resource_t *rsc = g_slist_nth_data(rsc_list, lpc);		int lpc2 = 0;				for(lpc2 = 0; lpc2 < g_slist_length(rsc->allowed_nodes); lpc2++) {			node_t *node = g_slist_nth_data(rsc->allowed_nodes, lpc2);			if(node->weight < 0.0) {				g_slist_remove(rsc->allowed_nodes,node);			}      		}	}	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/db8433868c8c969b4872da3b0ab348b28883713b/pengine.c/buggy/crm/pengine/pengine.c