From 8f4f234d9b3d1c5f9f591ac4d714ac11a94f65f1 Mon Sep 17 00:00:00 2001 From: henning <> Date: Wed, 2 Feb 2005 19:03:52 +0000 Subject: [PATCH] KNF --- src/usr.sbin/ntpd/ntp.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/usr.sbin/ntpd/ntp.c b/src/usr.sbin/ntpd/ntp.c index cabe54ab..d25d370b 100644 --- a/src/usr.sbin/ntpd/ntp.c +++ b/src/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 @@ -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