summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2005-03-08 16:27:14 +0000
committerderaadt <deraadt@openbsd.org>2005-03-08 16:27:14 +0000
commitbf8cff5b6e36fcb4e3d5da743c77847ac90a9675 (patch)
treebe2a89fa80cdd22fd200d3a4cecf1aa55ac09325
parentmake cvs_findcmd() and cvs_read_rcfile() static. (diff)
downloadwireguard-openbsd-bf8cff5b6e36fcb4e3d5da743c77847ac90a9675.tar.xz
wireguard-openbsd-bf8cff5b6e36fcb4e3d5da743c77847ac90a9675.zip
knf
-rw-r--r--usr.sbin/ntpd/ntp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index f9fd8a9e0f8..5b2635b1687 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.52 2005/03/08 14:37:16 deraadt Exp $ */
+/* $OpenBSD: ntp.c,v 1.53 2005/03/08 16:27:14 deraadt Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -142,7 +142,8 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf)
conf->status.leap = LI_ALARM;
clock_getres(CLOCK_REALTIME, &tp);
b = 1000000000 / tp.tv_nsec; /* convert to Hz */
- for (a = 0; b > 1; a--, b >>= 1);
+ for (a = 0; b > 1; a--, b >>= 1)
+ ;
conf->status.precision = a;
conf->scale = 1;