diff options
author | 2013-10-15 20:35:55 +0000 | |
---|---|---|
committer | 2013-10-15 20:35:55 +0000 | |
commit | 4f8f19c5b79f2f05e1c9af6ef74fcf68c21766c9 (patch) | |
tree | de49e05be7d717e32e112608624be15957406f4f | |
parent | tweak previous; (diff) | |
download | wireguard-openbsd-4f8f19c5b79f2f05e1c9af6ef74fcf68c21766c9.tar.xz wireguard-openbsd-4f8f19c5b79f2f05e1c9af6ef74fcf68c21766c9.zip |
Remove stray (long) cast of value being assigned to tv_secs.
ok guenther@
-rw-r--r-- | usr.sbin/ntpd/util.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/util.c b/usr.sbin/ntpd/util.c index a9e02316597..839cf8c79cb 100644 --- a/usr.sbin/ntpd/util.c +++ b/usr.sbin/ntpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.14 2011/09/21 15:41:30 phessler Exp $ */ +/* $OpenBSD: util.c,v 1.15 2013/10/15 20:35:55 krw Exp $ */ /* * Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org> @@ -63,7 +63,7 @@ getmonotime(void) void d_to_tv(double d, struct timeval *tv) { - tv->tv_sec = (long)d; + tv->tv_sec = d; tv->tv_usec = (d - tv->tv_sec) * 1000000; while (tv->tv_usec < 0) { tv->tv_usec += 1000000; |