diff options
Diffstat (limited to 'usr.sbin/xntpd/xntpdc/ntpdc_ops.c')
-rw-r--r-- | usr.sbin/xntpd/xntpdc/ntpdc_ops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/xntpd/xntpdc/ntpdc_ops.c b/usr.sbin/xntpd/xntpdc/ntpdc_ops.c index 26f7e91d8fa3..55483faeba10 100644 --- a/usr.sbin/xntpd/xntpdc/ntpdc_ops.c +++ b/usr.sbin/xntpd/xntpdc/ntpdc_ops.c @@ -442,7 +442,7 @@ printpeer(pp, fp) if (pp->stratum <= 1) { junk[4] = 0; - bcopy((char *)&pp->refid, junk, 4); + memmove(junk, (char *)&pp->refid, 4); str = junk; } else { str = numtoa(pp->refid); @@ -788,7 +788,7 @@ sysinfo(pcmd, fp) ufptoa(NTOHS_FP(is->rootdispersion), 4)); if (is->stratum <= 1) { junk[4] = 0; - bcopy((char *)&is->refid, junk, 4); + memmove(junk, (char *)&is->refid, 4); str = junk; } else { str = numtoa(is->refid); @@ -2192,7 +2192,7 @@ fudge(pcmd, fp) err = 0; - bzero((char *)&fudgedata, sizeof fudgedata); + memset((char *)&fudgedata, 0, sizeof fudgedata); fudgedata.clockadr = pcmd->argval[0].netnum; if (STREQ(pcmd->argval[1].string, "time1")) { |