From 5d151caf35ee9a990dda9a3af370ca30a8b7f638 Mon Sep 17 00:00:00 2001 From: Scott Wood Date: Thu, 27 Sep 2007 17:46:59 -0500 Subject: [PATCH] idlcomp: Make idl_error() accept a const pointer. --- idlcomp/idlc.h | 2 +- idlcomp/main.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/idlcomp/idlc.h b/idlcomp/idlc.h index 84c28ae..651fae6 100644 --- a/idlcomp/idlc.h +++ b/idlcomp/idlc.h @@ -43,7 +43,7 @@ using std::vector; int yylex(); int idl_lex(); #define cdl_lex idl_lex -void idl_error(char *s); +void idl_error(const char *s); #define cdl_error idl_error diff --git a/idlcomp/main.cc b/idlcomp/main.cc index a38319f..c21532e 100644 --- a/idlcomp/main.cc +++ b/idlcomp/main.cc @@ -797,7 +797,7 @@ extern "C" int yywrap() extern char *yytext; -void idl_error(char *s) +void idl_error(const char *s) { if (strlen(yytext)) fprintf(stderr, "%s:%d: %s at \"%s\".\n", cur_input_file, curline, s, yytext); -- 2.39.2