Browse Source

Correctly assign a default weight of 1 to sensors and servers.

ok beck
OPENBSD_4_3
ckuethe 17 years ago
parent
commit
89d498e9d8
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/parse.y

+ 3
- 3
src/usr.sbin/ntpd/parse.y View File

@ -1,4 +1,4 @@
/* $OpenBSD: parse.y,v 1.33 2007/09/12 21:08:46 ckuethe Exp $ */
/* $OpenBSD: parse.y,v 1.34 2007/09/14 03:07:11 ckuethe Exp $ */
/* /*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@ -219,7 +219,7 @@ address : STRING {
server_opts : { bzero(&opts, sizeof opts); opts.weight = 1; } server_opts : { bzero(&opts, sizeof opts); opts.weight = 1; }
server_opts_l server_opts_l
{ $$ = opts; } { $$ = opts; }
| { bzero(&opts, sizeof opts); $$ = opts; }
| { bzero(&opts, sizeof opts); opts.weight = 1; $$ = opts; }
; ;
server_opts_l : server_opts_l server_opt server_opts_l : server_opts_l server_opt
| server_opt | server_opt
@ -230,7 +230,7 @@ server_opt : weight
sensor_opts : { bzero(&opts, sizeof opts); opts.weight = 1; } sensor_opts : { bzero(&opts, sizeof opts); opts.weight = 1; }
sensor_opts_l sensor_opts_l
{ $$ = opts; } { $$ = opts; }
| { bzero(&opts, sizeof opts); $$ = opts; }
| { bzero(&opts, sizeof opts); opts.weight = 1; $$ = opts; }
; ;
sensor_opts_l : sensor_opts_l sensor_opt sensor_opts_l : sensor_opts_l sensor_opt
| sensor_opt | sensor_opt


Loading…
Cancel
Save