diff options
author | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-04 13:11:46 +0000 |
---|---|---|
committer | Claudio Jeker <claudio@cvs.openbsd.org> | 2009-09-04 13:11:46 +0000 |
commit | 72b3f0fb6eb2c7e78f0d5c523e0671628b1d409c (patch) | |
tree | 4b6cfd1694d62532357d6d568d8184c5364ab669 | |
parent | 9e8ab28ed924665527ef905d4494591accca5caf (diff) |
Dvrmpd inherited the same yesno porblem from bgpd. Make sure it throws
a proper syntax error.
-rw-r--r-- | usr.sbin/dvmrpd/parse.y | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/dvmrpd/parse.y b/usr.sbin/dvmrpd/parse.y index 19817dc23fe..69fa220181c 100644 --- a/usr.sbin/dvmrpd/parse.y +++ b/usr.sbin/dvmrpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.19 2009/03/31 21:03:48 tobias Exp $ */ +/* $OpenBSD: parse.y,v 1.20 2009/09/04 13:11:45 claudio Exp $ */ /* * Copyright (c) 2004, 2005, 2006 Esben Norby <norby@openbsd.org> @@ -150,6 +150,8 @@ yesno : STRING { else if (!strcmp($1, "no")) $$ = 0; else { + yyerror("syntax error, " + "either yes or no expected"); free($1); YYERROR; } |