diff options
Diffstat (limited to 'usr.sbin/xntpd/xntpd/ntp_monitor.c')
-rw-r--r-- | usr.sbin/xntpd/xntpd/ntp_monitor.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/xntpd/xntpd/ntp_monitor.c b/usr.sbin/xntpd/xntpd/ntp_monitor.c index 5d589e87454c..63af8d4d4d97 100644 --- a/usr.sbin/xntpd/xntpd/ntp_monitor.c +++ b/usr.sbin/xntpd/xntpd/ntp_monitor.c @@ -102,7 +102,7 @@ init_mon() mon_free = 0; mon_hash = 0; mon_hash_count = 0; - bzero((char *)&mon_mru_list, sizeof mon_mru_list); + memset((char *)&mon_mru_list, 0, sizeof mon_mru_list); } @@ -121,7 +121,8 @@ mon_start() if (!mon_have_memory) { mon_hash = (struct mon_data *) emalloc(MON_HASH_SIZE * sizeof(struct mon_data)); - bzero((char *)mon_hash, MON_HASH_SIZE*sizeof(struct mon_data)); + memset((char *)mon_hash, 0, + MON_HASH_SIZE*sizeof(struct mon_data)); mon_hash_count = (int *)emalloc(MON_HASH_SIZE * sizeof(int)); mon_free_mem = 0; mon_total_mem = 0; |