int lpc;
has_agent(node_t *a_node, lrm_agent_t *an_agent){	int lpc;	if(a_node == NULL || an_agent == NULL || an_agent->type == NULL) {		crm_warn("Invalid inputs");		return FALSE;	}		crm_devel("Checking %d agents on %s",		  g_list_length(a_node->details->agents),		  a_node->details->uname);	slist_iter(		agent, lrm_agent_t, a_node->details->agents, lpc,		crm_trace("Checking against  %s/%s (%s)",			  agent->class, agent->type, agent->version);		if(safe_str_eq(an_agent->type, agent->type)){			if(an_agent->class == NULL) {				return TRUE;							} else if(safe_str_eq(an_agent->class, agent->class)) {				if(compare_version(					   an_agent->version, agent->version)				   <= 0) {					return TRUE;				}			}		}		);		crm_verbose("%s doesnt support version %s of %s/%s",		    a_node->details->uname, an_agent->version,		    an_agent->class, an_agent->type);		return FALSE;}