int llpc = 0; slist_iter(node_rh, node_t, cons->node_list_rh, llpc, update_node_weight(cons, node_rh));
apply_node_constraints(GSListPtr constraints, 		       GSListPtr resources,		       GSListPtr nodes){	pdebug("Applying constraints... %s", __FUNCTION__);	int lpc = 0;	for(lpc = 0; lpc < g_slist_length(constraints); lpc++) {		rsc_constraint_t *cons = (rsc_constraint_t *)			g_slist_nth_data(constraints, lpc);				pdebug_action(print_cons("Applying", cons, FALSE));		// take "lifetime" into account		if(cons == NULL) {			cl_log(LOG_ERR, "Constraint (%d) is NULL", lpc); 				continue;					} else if(is_active(cons) == FALSE) {			cl_log(LOG_INFO, "Constraint (%d) is not active", lpc); 				// warning			continue;		}    		resource_t *rsc_lh = cons->rsc_lh;		if(rsc_lh == NULL) {			cl_log(LOG_ERR, "LHS of rsc_to_node (%s) is NULL", cons->id); 				continue;		}		GSListPtr rsc_cons_list = cons->rsc_lh->constraints;		rsc_lh->constraints = g_slist_append(rsc_cons_list, cons);		if(cons->type == rsc_to_rsc) {			// nothing 			pdebug("nothing to do");			continue;					} else if(cons->type == rsc_to_node			  || cons->type == rsc_to_attr) {			if(cons->node_list_rh == NULL) {				cl_log(LOG_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));			}						/* dont add it to the resource,			 *  the information is in the resouce's node list			 */		} else {			// error		}	}	return TRUE;	}