diff options
author | jdp <jdp@FreeBSD.org> | 1999-05-21 16:10:44 +0000 |
---|---|---|
committer | jdp <jdp@FreeBSD.org> | 1999-05-21 16:10:44 +0000 |
commit | 170fae0a339af3ac402f1eca6c62cafc76f1b7ff (patch) | |
tree | 6b8b4bf389f5f733300054fc7dbbbefc152fe48e /usr.sbin | |
parent | c872d87caffa68497966d1b8f5a2d0e371f46e82 (diff) | |
download | FreeBSD-src-170fae0a339af3ac402f1eca6c62cafc76f1b7ff.zip FreeBSD-src-170fae0a339af3ac402f1eca6c62cafc76f1b7ff.tar.gz |
Fix a sign-extension bug in xntpdc's "kerninfo" output for on 64-bit
machines. Negative pll offset values were printed as large positive
numbers.
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/xntpd/xntpdc/ntpdc_ops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/xntpd/xntpdc/ntpdc_ops.c b/usr.sbin/xntpd/xntpdc/ntpdc_ops.c index 7010f9b..600d5c9 100644 --- a/usr.sbin/xntpd/xntpdc/ntpdc_ops.c +++ b/usr.sbin/xntpd/xntpdc/ntpdc_ops.c @@ -2396,7 +2396,7 @@ kerninfo(pcmd, fp) * pll variables */ (void)fprintf(fp, "pll offset: %ld us\n", - (u_long)ntohl(ik->offset)); + (long)(int32_t)ntohl(ik->offset)); (void)fprintf(fp, "pll frequency: %s ppm\n", fptoa((s_fp)ntohl(ik->freq), 3)); (void)fprintf(fp, "maximum error: %ld us\n", |