Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libntp Fix LP64 glitch which resulted in xntpd attemptin...



details:   https://anonhg.NetBSD.org/src/rev/fb29ca906e26
branches:  trunk
changeset: 477066:fb29ca906e26
user:      sommerfeld <sommerfeld%NetBSD.org@localhost>
date:      Sat Oct 09 19:42:46 1999 +0000

description:
Fix LP64 glitch which resulted in xntpd attempting pass excessively
large offsets into adjtime().  (bug reported in PR7602).

It's fairly clear that this is not the only lp64 glitch in the code,
but this is a biggie.

diffstat:

 lib/libntp/systime.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r e1b33e2889a5 -r fb29ca906e26 lib/libntp/systime.c
--- a/lib/libntp/systime.c      Sat Oct 09 18:55:30 1999 +0000
+++ b/lib/libntp/systime.c      Sat Oct 09 19:42:46 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systime.c,v 1.5 1999/07/03 12:30:31 simonb Exp $       */
+/*     $NetBSD: systime.c,v 1.6 1999/10/09 19:42:46 sommerfeld Exp $   */
 
 /*
  * systime -- routines to fiddle a UNIX clock.
@@ -193,7 +193,7 @@
 adj_systime(now)
        l_fp *now;
 {
-       register u_long offset_i, offset_f;
+       register u_int32 offset_i, offset_f;
        register long temp;
        register u_long residual;
        register int isneg = 0;



Home | Main Index | Thread Index | Old Index