summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2005-02-02 19:03:53 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2005-02-02 19:03:53 +0000
commit0a54a2a5d4909a27037d246906b5a02c25c65d7f (patch)
tree30c26f8766e0bd7bb2fac64fd53ae96ddb2789c8
parentea9535d779a0424547c961a7832eebe4b89f9b7e (diff)
KNF
-rw-r--r--usr.sbin/ntpd/ntp.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index cabe54ab8ea..d25d370b1e4 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.49 2005/01/28 12:37:20 dtucker Exp $ */
+/* $OpenBSD: ntp.c,v 1.50 2005/02/02 19:03:52 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -461,15 +461,15 @@ priv_host_dns(char *name, u_int32_t peerid)
void
update_scale(double offset)
{
- if (offset < 0)
- offset = -offset;
-
- if (offset > QSCALE_OFF_MAX)
- conf->scale = 1;
- else if (offset < QSCALE_OFF_MIN)
- conf->scale = QSCALE_OFF_MAX / QSCALE_OFF_MIN;
- else
- conf->scale = QSCALE_OFF_MAX / offset;
+ if (offset < 0)
+ offset = -offset;
+
+ if (offset > QSCALE_OFF_MAX)
+ conf->scale = 1;
+ else if (offset < QSCALE_OFF_MIN)
+ conf->scale = QSCALE_OFF_MAX / QSCALE_OFF_MIN;
+ else
+ conf->scale = QSCALE_OFF_MAX / offset;
}
time_t