add_positive_preference(xmlNodePtr lrm_state){	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);		} 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/3f7ef6f6d01e4c02d1ce2b39d4ae2a51c15a9d0b/pengine.c/buggy/crm/pengine/pengine.c