zabbix-agent2/src/zabbix_server/alerter/alert_manager.c
/******************************************************************************
 *                                                                            *
 * Function: am_update_watchdog                                               *
 *                                                                            *
 * Purpose: update 'database down' watchdog alert recipients                  *
 *                                                                            *
 ******************************************************************************/
am_update_watchdog

Purpose: update 'database down' watchdog alert recipients
am_update_watchdog Purpose : update ' database down ' watchdog alert recipients
static void	am_update_watchdog(zbx_am_t *manager, zbx_ipc_message_t *message)
{
	zbx_am_media_t	**medias;
	int		medias_num, i;
	zbx_alerter_deserialize_medias(message->data, &medias, &medias_num);
	am_sync_watchdog(manager, medias, medias_num);
	for (i = 0; i < medias_num; i++)
		zbx_am_media_free(medias[i]);
	zbx_free(medias);
}
static void am_update_watchdog ( zbx_am_t * manager , zbx_ipc_message_t * message ) { zbx_am_media_t * * medias ; int medias_num , i ; zbx_alerter_deserialize_medias ( message -> data , & medias , & medias_num ) ; am_sync_watchdog ( manager , medias , medias_num ) ; for ( i = 0 ; i < medias_num ; i ++ ) zbx_am_media_free ( medias [ i ] ) ; zbx_free ( medias ) ; }
Function: am_update_watchdog                                               
                                                                            
 Purpose: update 'database down' watchdog alert recipients
Function : am_update_watchdog Purpose : update ' database down ' watchdog alert recipients