~ubuntu-branches/ubuntu/vivid/taopm/vivid

« back to all changes in this revision

Viewing changes to debian/patches/02-fix-parser-yyerror.diff

  • Committer: Package Import Robot
  • Author(s): Tiago Bortoletto Vaz
  • Date: 2013-04-18 19:36:57 UTC
  • Revision ID: package-import@ubuntu.com-20130418193657-48dmuxggnxwdlj2k
Tags: 1.0-1
Initial release. (Closes: #703111)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: Use a constant char, dummy comment.
 
2
Author: Tiago Bortoletto Vaz <tiago@debian.org>
 
3
Last-Update: 2013-04-17
 
4
--- a/taoparse/taoparser.yy
 
5
+++ b/taoparse/taoparser.yy
 
6
@@ -23,7 +23,7 @@
 
7
 #include <stdio.h>
 
8
 #include "taoparserdefs.h"
 
9
 
 
10
-int yyerror(char *s);
 
11
+int yyerror(const char *s);
 
12
 
 
13
 //#ifdef LINUX
 
14
 int yylex(void);
 
15
@@ -2924,7 +2924,7 @@
 
16
     } 
 
17
 
 
18
 
 
19
-int yyerror (char *s)
 
20
+int yyerror (const char *s)
 
21
     {
 
22
     parse_error(what_I_expected_here);
 
23
     std::cout << "PARSE_FAILED";