g_slist_append(cons->rsc_lh->node_cons, cons);
g_list_append(cons->rsc_lh->node_cons, cons);
apply_node_constraints(GSListPtr constraints, 		       GSListPtr resources,		       GSListPtr nodes){	crm_verbose("Applying constraints...");	int lpc = 0;	slist_iter(		cons, rsc_to_node_t, constraints, lpc,		crm_debug_action(print_rsc_to_node("Applying", cons, FALSE));		// take "lifetime" into account		if(cons == NULL) {			crm_err("Constraint (%d) is NULL", lpc);			continue;					} else if(is_active(cons) == FALSE) {			crm_info("Constraint (%d) is not active", lpc);			// warning			continue;		}    		resource_t *rsc_lh = cons->rsc_lh;		if(rsc_lh == NULL) {			crm_err("LHS of rsc_to_node (%s) is NULL", cons->id); 				continue;		}		cons->rsc_lh->node_cons =			g_slist_append(cons->rsc_lh->node_cons, cons);		if(cons->node_list_rh == NULL) {			crm_err("RHS of rsc_to_node (%s) is NULL", cons->id);			continue;		} else {			int llpc = 0;			slist_iter(node_rh, node_t, cons->node_list_rh, llpc,				   update_node_weight(cons,						      node_rh->details->id,						      nodes));		}				/* dont add it to the resource,		 *  the information is in the resouce's node list		 */		);		return TRUE;	}