summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-07-07 07:38:22 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-07-07 07:38:22 +0000
commit2d2b63fe936f4aa749ae6d784356ce73c1dd802f (patch)
tree91027cc79331fe951592b0f6173ad33036129071 /usr.sbin/ntpd
parentc16a4d2c6cb2784ebd9d8b09a147f1c1998e857b (diff)
help the compiler a bit with a cast, spotted by theo
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/util.c b/usr.sbin/ntpd/util.c
index 090e8075a1c..f1180f14363 100644
--- a/usr.sbin/ntpd/util.c
+++ b/usr.sbin/ntpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.6 2004/07/07 07:32:05 alexander Exp $ */
+/* $OpenBSD: util.c,v 1.7 2004/07/07 07:38:21 henning Exp $ */
/*
* Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org>
@@ -57,7 +57,7 @@ d_to_lfp(double d)
{
struct l_fixedpt lfp;
- lfp.int_part = htonl(d);
+ lfp.int_part = htonl((u_int32_t)d);
lfp.fraction = htonl((u_int32_t)((d - (u_int32_t)d) * UINT_MAX));
return (lfp);