new_cons->rsc_lh = pe_find_resource(rsc_list, rsc_id);  
new_cons->rsc_lh = rsc_lh; 
add_positive_preference(xmlNodePtr lrm_state){	pdebug(cl_log(LOG_DEBUG, "here %s", __FUNCTION__));		while(lrm_state != NULL) {		const char *rsc_id    = xmlGetProp(lrm_state, "rsc_id");		const char *node_id   = xmlGetProp(lrm_state, "node_id");		const char *rsc_state = xmlGetProp(lrm_state, "rsc_state");				if((safe_str_eq(rsc_state, "starting"))		   || (safe_str_eq(rsc_state, "started"))) {						node_t *node_rh;			rsc_constraint_t *new_cons =				cl_malloc(sizeof(rsc_constraint_t));			new_cons->id = cl_strdup(""); // genereate one			new_cons->type = rsc_to_node;			new_cons->weight = 100.0;			new_cons->modifier = inc;						new_cons->rsc_lh = pe_find_resource(rsc_list,							    rsc_id);			node_rh = pe_find_node(node_list, node_id);						new_cons->node_list_rh = g_slist_append(NULL,								node_rh);								cons_list = g_slist_append(cons_list, new_cons);			pdebug(print_cons("Added", new_cons, FALSE));						new_cons->rsc_lh->cur_node_id = cl_strdup(node_id);					} else if(safe_str_eq(rsc_state, "stop_fail")) {			// do soemthing		} // else no preference		lrm_state = lrm_state->next;	}	return TRUE;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/a3ce75677d1dbba44868d0c952600abe4b59a8cb/pengine.c/clean/crm/pengine/pengine.c