Browse Source

aggressive spelling fix, spotted by jbg

OPENBSD_4_2
deraadt 17 years ago
parent
commit
c34c8f6d6a
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/client.c
  2. +3
    -3
      src/usr.sbin/ntpd/ntpd.h

+ 3
- 3
src/usr.sbin/ntpd/client.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: client.c,v 1.74 2006/10/27 12:22:41 henning Exp $ */
/* $OpenBSD: client.c,v 1.75 2007/04/30 01:33:33 deraadt Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -268,8 +268,8 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime)
if (p->trustlevel < TRUSTLEVEL_PATHETIC) if (p->trustlevel < TRUSTLEVEL_PATHETIC)
interval = scale_interval(INTERVAL_QUERY_PATHETIC); interval = scale_interval(INTERVAL_QUERY_PATHETIC);
else if (p->trustlevel < TRUSTLEVEL_AGRESSIVE)
interval = scale_interval(INTERVAL_QUERY_AGRESSIVE);
else if (p->trustlevel < TRUSTLEVEL_AGGRESSIVE)
interval = scale_interval(INTERVAL_QUERY_AGGRESSIVE);
else else
interval = scale_interval(INTERVAL_QUERY_NORMAL); interval = scale_interval(INTERVAL_QUERY_NORMAL);


+ 3
- 3
src/usr.sbin/ntpd/ntpd.h View File

@ -1,4 +1,4 @@
/* $OpenBSD: ntpd.h,v 1.83 2007/03/23 14:22:40 ckuethe Exp $ */
/* $OpenBSD: ntpd.h,v 1.84 2007/04/30 01:33:33 deraadt Exp $ */
/* /*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -41,11 +41,11 @@
#define INTERVAL_QUERY_NORMAL 30 /* sync to peers every n secs */ #define INTERVAL_QUERY_NORMAL 30 /* sync to peers every n secs */
#define INTERVAL_QUERY_PATHETIC 60 #define INTERVAL_QUERY_PATHETIC 60
#define INTERVAL_QUERY_AGRESSIVE 5
#define INTERVAL_QUERY_AGGRESSIVE 5
#define TRUSTLEVEL_BADPEER 6 #define TRUSTLEVEL_BADPEER 6
#define TRUSTLEVEL_PATHETIC 2 #define TRUSTLEVEL_PATHETIC 2
#define TRUSTLEVEL_AGRESSIVE 8
#define TRUSTLEVEL_AGGRESSIVE 8
#define TRUSTLEVEL_MAX 10 #define TRUSTLEVEL_MAX 10
#define MAX_SERVERS_DNS 8 #define MAX_SERVERS_DNS 8


Loading…
Cancel
Save