]> git.buserror.net Git - polintos/scott/priv.git/commitdiff
idlcomp: Make idl_error() accept a const pointer.
authorScott Wood <scottwood@freescale.com>
Thu, 27 Sep 2007 22:46:59 +0000 (17:46 -0500)
committerScott Wood <scottwood@freescale.com>
Thu, 27 Sep 2007 22:46:59 +0000 (17:46 -0500)
idlcomp/idlc.h
idlcomp/main.cc

index 84c28aee61f4126a43eaa04f790ae4eef393108a..651fae653592a0b42ae6b48f9538f7eeed99fca6 100644 (file)
@@ -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
 
index a38319fc93e4fb943997f66c4d99a7d7fb0cd96d..c21532ead39b7c2847f34dc9f8901e28fb4ad6a7 100644 (file)
@@ -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);