summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-04-04 10:53:59 +0000
committerphk <phk@FreeBSD.org>1999-04-04 10:53:59 +0000
commitec237a86954e86068e0773decfcbd19e0f51165e (patch)
treec39ae7afa2dc62e6dd847016b4d62f9d765066ff /sys
parentc675a22738e7b37e7373033eff6b3e15a26eeaef (diff)
downloadFreeBSD-src-ec237a86954e86068e0773decfcbd19e0f51165e.zip
FreeBSD-src-ec237a86954e86068e0773decfcbd19e0f51165e.tar.gz
Dang, lost some LL's there.
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_ntptime.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c
index 0d8d23e..12bfbd4 100644
--- a/sys/kern/kern_ntptime.c
+++ b/sys/kern/kern_ntptime.c
@@ -287,7 +287,7 @@ ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap)
return (error);
s = splclock();
if (modes & MOD_FREQUENCY) {
- freq = (ntv.freq * 1000) << 16;
+ freq = (ntv.freq * 1000LL) << 16;
if (freq > MAXFREQ)
L_LINT(time_freq, MAXFREQ);
else if (freq < -MAXFREQ)
@@ -337,7 +337,7 @@ ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap)
ntv.offset = L_GINT(time_offset);
else
ntv.offset = L_GINT(time_offset) / 1000;
- ntv.freq = L_GINT((time_freq / 1000) << 16);
+ ntv.freq = L_GINT((time_freq / 1000LL) << 16);
ntv.maxerror = time_maxerror;
ntv.esterror = time_esterror;
ntv.status = time_status;
@@ -349,7 +349,7 @@ ntp_adjtime(struct proc *p, struct ntp_adjtime_args *uap)
ntv.tolerance = MAXFREQ * SCALE_PPM;
#ifdef PPS_SYNC
ntv.shift = pps_shift;
- ntv.ppsfreq = L_GINT((pps_freq / 1000) << 16);
+ ntv.ppsfreq = L_GINT((pps_freq / 1000LL) << 16);
ntv.jitter = pps_jitter;
if (time_status & STA_NANO)
ntv.jitter = pps_jitter;
OpenPOWER on IntegriCloud