diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2005-08-03 16:29:37 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2005-08-03 16:29:37 +0000 |
commit | 599a5de2f0974ee6d1d120aa4e567440236c0b84 (patch) | |
tree | 1c2283adb78e4f9a781849e51bd38794d96f5010 | |
parent | 13c5938c4ce1e81531d5172192d5943111775725 (diff) |
use action_block in init instead of custom code, permits single line
commands w/o braces in init
ok henning, mpf
-rw-r--r-- | usr.sbin/ifstated/parse.y | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ifstated/parse.y b/usr.sbin/ifstated/parse.y index 42e2fd94f67..56844871c3a 100644 --- a/usr.sbin/ifstated/parse.y +++ b/usr.sbin/ifstated/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.9 2005/02/07 12:41:53 mcbride Exp $ */ +/* $OpenBSD: parse.y,v 1.10 2005/08/03 16:29:36 sturm Exp $ */ /* * Copyright (c) 2004 Ryan McBride <mcbride@openbsd.org> @@ -251,7 +251,7 @@ init : INIT { curaction = curstate->init; else curaction = conf->always.init; - } optnl '{' optnl action_l '}' { + } action_block { if (curstate != NULL) curaction = curstate->always; else |