summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2007-09-12 18:32:54 +0000
committerderaadt <deraadt@openbsd.org>2007-09-12 18:32:54 +0000
commit5215c3cc24a2a1af40db788bc028227bc623844a (patch)
treece20b04020006b3ae9212114c9a5f43fd1cf231b
parentport of i386 pctr code to amd64; Mike Belopuhov (diff)
downloadwireguard-openbsd-5215c3cc24a2a1af40db788bc028227bc623844a.tar.xz
wireguard-openbsd-5215c3cc24a2a1af40db788bc028227bc623844a.zip
default weight has to remain 1; seen by Maurice Janssen
-rw-r--r--usr.sbin/ntpd/parse.y6
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; }