diff options
author | roberto <roberto@FreeBSD.org> | 2004-07-20 15:01:56 +0000 |
---|---|---|
committer | roberto <roberto@FreeBSD.org> | 2004-07-20 15:01:56 +0000 |
commit | 118e757284cbb8fc4f43a713e892b41504b50a5f (patch) | |
tree | 528d12dda44ebdc3ffcc38050f159ac553a69c17 /contrib/ntp/libntp/dolfptoa.c | |
parent | a85d9ae25e8e8696677bc30feb6eaf7fc150e529 (diff) | |
download | FreeBSD-src-118e757284cbb8fc4f43a713e892b41504b50a5f.zip FreeBSD-src-118e757284cbb8fc4f43a713e892b41504b50a5f.tar.gz |
Virgin import of ntpd 4.2.0
Diffstat (limited to 'contrib/ntp/libntp/dolfptoa.c')
-rw-r--r-- | contrib/ntp/libntp/dolfptoa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/contrib/ntp/libntp/dolfptoa.c b/contrib/ntp/libntp/dolfptoa.c index 5602331..7c92a30 100644 --- a/contrib/ntp/libntp/dolfptoa.c +++ b/contrib/ntp/libntp/dolfptoa.c @@ -13,7 +13,7 @@ dolfptoa( u_long fpi, u_long fpv, int neg, - int ndec, + short ndec, int msec ) { @@ -59,8 +59,8 @@ dolfptoa( do { stmp = swork; - swork /= sten; - stmp -= (swork<<3) + (swork<<1); + swork = (u_short) (swork/sten); + stmp = (u_short)(stmp - ((swork<<3) + (swork<<1))); *--cp = (u_char)stmp; } while (swork != 0); } |