From a345b0c86336d1afbcf079fddfcf9c535c91a0eb Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Wed, 12 Sep 2007 18:32:54 +0000 Subject: [PATCH] default weight has to remain 1; seen by Maurice Janssen --- src/usr.sbin/ntpd/parse.y | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/usr.sbin/ntpd/parse.y b/src/usr.sbin/ntpd/parse.y index bc8902ca..2deaa62d 100644 --- a/src/usr.sbin/ntpd/parse.y +++ b/src/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 @@ -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; }