int rsc_code_i = 0;
unpack_lrm_rsc_state(node_t *node, xmlNodePtr lrm_rsc,		     GListPtr rsc_list, GListPtr *node_constraints){	xmlNodePtr rsc_entry  = NULL;	const char *rsc_id    = NULL;	const char *node_id   = NULL;	const char *rsc_state = NULL;	const char *rsc_code  = NULL;	resource_t *rsc_lh    = NULL;	int rsc_code_i = 0;		while(lrm_rsc != NULL) {		rsc_entry = lrm_rsc;		lrm_rsc = lrm_rsc->next;				rsc_id    = xmlGetProp(rsc_entry, XML_ATTR_ID);		node_id   = xmlGetProp(rsc_entry, XML_LRM_ATTR_TARGET);		rsc_state = xmlGetProp(rsc_entry, XML_LRM_ATTR_STATE);		rsc_code  = xmlGetProp(rsc_entry, "op_code");				rsc_lh    = pe_find_resource(rsc_list, rsc_id);		crm_verbose("[%s] Processing %s on %s (%s)",			    rsc_entry->name, rsc_id, node_id, rsc_state);		if(rsc_lh == NULL) {			crm_err("Could not find a match for resource"				" %s in %s's status section",				rsc_id, node_id);			continue;		}				rsc_code_i = atoi(rsc_code);		switch(rsc_code_i) {			case 0:				unpack_healthy_resource(node_constraints,							rsc_entry,rsc_lh,node);				break;			default:				unpack_failed_resource(node_constraints,						       rsc_entry,rsc_lh,node);				break;		}	}	return TRUE;}