zabbix-agent2/src/libs/zbxserver/expression.c
/******************************************************************************
 *                                                                            *
 * Function: rootcause_compare                                                *
 *                                                                            *
 * Purpose: compare root cause to sort by highest severity and host name      *
 *                                                                            *
 ******************************************************************************/
rootcause_compare

Purpose: compare root cause to sort by highest severity and host name
rootcause_compare Purpose : compare root cause to sort by highest severity and host name
static int	rootcause_compare(const zbx_rootcause_t *d1, const zbx_rootcause_t *d2)
{
	ZBX_RETURN_IF_NOT_EQUAL(d2->nseverity, d1->nseverity);
	return strcmp(d1->host, d2->host);
}
static int rootcause_compare ( const zbx_rootcause_t * d1 , const zbx_rootcause_t * d2 ) { ZBX_RETURN_IF_NOT_EQUAL ( d2 -> nseverity , d1 -> nseverity ) ; return strcmp ( d1 -> host , d2 -> host ) ; }
Function: rootcause_compare                                                
                                                                            
 Purpose: compare root cause to sort by highest severity and host name
Function : rootcause_compare Purpose : compare root cause to sort by highest severity and host name