zabbix-agent2/src/zabbix_server/lld/lld_host.c
/******************************************************************************
 *                                                                            *
 * Function: lld_group_rights_compare                                         *
 *                                                                            *
 * Purpose: sorting function to sort group rights vector by name              *
 *                                                                            *
 ******************************************************************************/
lld_group_rights_compare

Purpose: sorting function to sort group rights vector by name
lld_group_rights_compare Purpose : sorting function to sort group rights vector by name
static int	lld_group_rights_compare(const void *d1, const void *d2)
{
	const zbx_lld_group_rights_t	*r1 = *(const zbx_lld_group_rights_t **)d1;
	const zbx_lld_group_rights_t	*r2 = *(const zbx_lld_group_rights_t **)d2;
	return strcmp(r1->name, r2->name);
}
static int lld_group_rights_compare ( const void * d1 , const void * d2 ) { const zbx_lld_group_rights_t * r1 = * ( const zbx_lld_group_rights_t * * ) d1 ; const zbx_lld_group_rights_t * r2 = * ( const zbx_lld_group_rights_t * * ) d2 ; return strcmp ( r1 -> name , r2 -> name ) ; }
Function: lld_group_rights_compare                                         
                                                                            
 Purpose: sorting function to sort group rights vector by name
Function : lld_group_rights_compare Purpose : sorting function to sort group rights vector by name