native_variant_data_t *native_data = NULL; get_native_variant_data(native_data, rsc);  
native_update_node_weight(resource_t *rsc, rsc_to_node_t *cons,			  node_t *cons_node, GListPtr nodes){	node_t *node_rh = NULL;	native_variant_data_t *native_data = NULL;	get_native_variant_data(native_data, rsc);	CRM_DEV_ASSERT(cons_node != NULL);		node_rh = pe_find_node_id(		rsc->allowed_nodes, cons_node->details->id);	if(node_rh == NULL) {		pe_err("Node not found - adding %s to %s",		       cons_node->details->id, rsc->id);		node_rh = node_copy(cons_node);		rsc->allowed_nodes = g_list_append(			rsc->allowed_nodes, node_rh);		node_rh = pe_find_node_id(			rsc->allowed_nodes, cons_node->details->id);		CRM_DEV_ASSERT(node_rh != NULL);		return;	}	CRM_DEV_ASSERT(node_rh != NULL);		if(node_rh == NULL) {		pe_err("Node not found - cant update");		return;	}	if(node_rh->weight >= INFINITY && cons_node->weight <= -INFINITY) {		pe_err("Constraint \"%s\" mixes +/- INFINITY (%s)",		       cons->id, rsc->id);			} else if(node_rh->details->shutdown == TRUE		  || node_rh->details->online == FALSE		  || node_rh->details->unclean == TRUE) {	} else if(node_rh->weight <= -INFINITY && cons_node->weight >= INFINITY) {		pe_err("Constraint \"%s\" mixes +/- INFINITY (%s)",			 cons->id, rsc->id);	}	if(node_rh->fixed) {		/* warning */		crm_debug_2("Constraint %s is irrelevant as the"			 " weight of node %s is fixed as %d (%s).",			 cons->id, node_rh->details->uname,			 node_rh->weight, rsc->id);		return;	}			node_rh->weight = merge_weights(node_rh->weight, cons_node->weight);	if(node_rh->weight <= -INFINITY) {		crm_debug_3("Constraint %s (-INFINITY): node %s weight %d (%s).",			    cons->id, node_rh->details->uname,			    node_rh->weight, rsc->id);			} else if(node_rh->weight >= INFINITY) {		crm_debug_3("Constraint %s (+INFINITY): node %s weight %d (%s).",			    cons->id, node_rh->details->uname,			    node_rh->weight, rsc->id);	} else {		crm_debug_3("Constraint %s (%d): node %s weight %d (%s).",			    cons->id, cons_node->weight, node_rh->details->uname,			    node_rh->weight, rsc->id);	}	if(node_rh->weight < 0) {		node_rh->fixed = TRUE;	}	crm_action_debug_3(print_node("Updated", node_rh, FALSE));	return;}
8182	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8182/5c9f91cbd1568bf3905bb87766c79ed562f9bb3a/native.c/buggy/crm/pengine/native.c