diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-09-12 18:32:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-09-12 18:32:55 +0000 |
commit | cdd25cbf34611ba7748b414a7991ac18b7611803 (patch) | |
tree | 051fed44bc0c019d29b49fd07a052bff6822dd35 | |
parent | 17488250e79f8b7a08aebe845668195136658b4a (diff) |
default weight has to remain 1; seen by Maurice Janssen
-rw-r--r-- | usr.sbin/ntpd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/parse.y b/usr.sbin/ntpd/parse.y index bc8902cad45..2deaa62dba4 100644 --- a/usr.sbin/ntpd/parse.y +++ b/usr.sbin/ntpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.31 2007/09/11 23:33:37 deraadt Exp $ */ +/* $OpenBSD: parse.y,v 1.32 2007/09/12 18:32:54 deraadt Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -213,7 +213,7 @@ address : STRING { } ; -server_opts : { bzero(&opts, sizeof opts); } +server_opts : { bzero(&opts, sizeof opts); opts.weight = 1; } server_opts_l { $$ = opts; } | { bzero(&opts, sizeof opts); $$ = opts; } @@ -224,7 +224,7 @@ server_opts_l : server_opts_l server_opt server_opt : weight ; -sensor_opts : { bzero(&opts, sizeof opts); } +sensor_opts : { bzero(&opts, sizeof opts); opts.weight = 1; } sensor_opts_l { $$ = opts; } | { bzero(&opts, sizeof opts); $$ = opts; } |