From bcd9f947e6436893016b284a4eb1e170b547f181 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Fri, 16 Jun 2006 10:09:52 +0000 Subject: report the correct line number on an error. Noticed by david@ --- sbin/ipsecctl/parse.y | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin/ipsecctl') diff --git a/sbin/ipsecctl/parse.y b/sbin/ipsecctl/parse.y index 882e8da9b31..f1aca8825f0 100644 --- a/sbin/ipsecctl/parse.y +++ b/sbin/ipsecctl/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.106 2006/06/11 20:21:08 hshoexer Exp $ */ +/* $OpenBSD: parse.y,v 1.107 2006/06/16 10:09:51 hshoexer Exp $ */ /* * Copyright (c) 2002, 2003, 2004 Henning Brauer @@ -810,7 +810,7 @@ yyerror(const char *fmt, ...) errors = 1; va_start(ap, fmt); - fprintf(stderr, "%s: %d: ", infile, yyval.lineno); + fprintf(stderr, "%s: %d: ", infile, yylval.lineno); vfprintf(stderr, fmt, ap); fprintf(stderr, "\n"); va_end(ap); -- cgit v1.2.3