diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-04-04 10:53:59 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-04-04 10:53:59 +0000 |
commit | 34cffbe3f69d36fff2b694cadb787e8c63f5c56e (patch) | |
tree | 704ee54f2fdb3916c00babfaacc9a83615e9b081 /sys/kern/kern_ntptime.c | |
parent | f425c1f6319eaa6a8477682567f1f2db5f14ff9f (diff) | |
download | src-34cffbe3f69d36fff2b694cadb787e8c63f5c56e.tar.gz src-34cffbe3f69d36fff2b694cadb787e8c63f5c56e.zip |
Dang, lost some LL's there.
Notes
Notes:
svn path=/head/; revision=45295
Diffstat (limited to 'sys/kern/kern_ntptime.c')
-rw-r--r-- | sys/kern/kern_ntptime.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/kern_ntptime.c b/sys/kern/kern_ntptime.c index 0d8d23e59612..12bfbd40ae80 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; |