[augeas-devel] augeas: master - * src/lexer.l: include errcode.h; fix bad use of report_error
David Lutterkort
lutter at fedoraproject.org
Thu Nov 26 01:15:40 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=4effdd8e3d94bbd49cd50f1ff21b41b03cd10e1b
Commit: 4effdd8e3d94bbd49cd50f1ff21b41b03cd10e1b
Parent: 183f3a219cff65c6fbd5a33ac2704ca7c498b589
Author: David Lutterkort <lutter at redhat.com>
AuthorDate: Wed Nov 25 16:43:57 2009 -0800
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Wed Nov 25 16:43:57 2009 -0800
* src/lexer.l: include errcode.h; fix bad use of report_error
---
src/lexer.l | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/src/lexer.l b/src/lexer.l
index a690f07..607d82a 100644
--- a/src/lexer.l
+++ b/src/lexer.l
@@ -13,6 +13,7 @@
%{
#include "syntax.h"
+#include "errcode.h"
typedef struct info YYLTYPE;
#define YYLTYPE_IS_DECLARED 1
@@ -163,7 +164,7 @@ ARROW ->
report_error(augl_get_extra(yyscanner)->error, AUG_ESYNTAX,
"%s:%d:%d: Missing *)",
augl_get_extra(yyscanner)->filename->str,
- yylineno, yylloc->first_column, yytext[0]);
+ yylineno, yylloc->first_column);
yyterminate();
}
}
More information about the augeas-devel
mailing list