ntp: combine parameters of NCR_AddBroadcastDestination()

This commit is contained in:
Miroslav Lichvar
2020-06-17 09:50:23 +02:00
parent 46714fec2d
commit 500c9cbf3b
4 changed files with 8 additions and 11 deletions

View File

@@ -2606,14 +2606,13 @@ broadcast_timeout(void *arg)
/* ================================================== */
void
NCR_AddBroadcastDestination(IPAddr *addr, unsigned short port, int interval)
NCR_AddBroadcastDestination(NTP_Remote_Address *addr, int interval)
{
BroadcastDestination *destination;
destination = (BroadcastDestination *)ARR_GetNewElement(broadcasts);
destination->addr.ip_addr = *addr;
destination->addr.port = port;
destination->addr = *addr;
destination->local_addr.ip_addr.family = IPADDR_UNSPEC;
destination->local_addr.if_index = INVALID_IF_INDEX;
destination->local_addr.sock_fd = NIO_OpenServerSocket(&destination->addr);