epicsNtp: avoid deprecated/non-standard bzero()

This commit is contained in:
Michael Davidsaver
2020-09-10 09:24:48 -07:00
committed by Brendan Chandler
parent 8366770d72
commit 10aff42da6

View File

@@ -43,7 +43,7 @@ int epicsNtpGetTime(char *ntpIp, struct timespec *now)
}
// Zero out the server address structure.
bzero( ( char* ) &serv_addr, sizeof( serv_addr ) );
memset( ( char* ) &serv_addr, 0, sizeof( serv_addr ) );
serv_addr.sin_family = AF_INET;
serv_addr.sin_addr.s_addr = inet_addr(ntpIp);