#! /bin/sh /usr/share/dpatch/dpatch-run ## 50-remove-invalid-const.dpatch by Kamal Mostafa ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: remove invalid const from process_shellLine() @DPATCH@ --- a/cli/scan.ll 2006-11-21 05:31:09 +0000 +++ b/cli/scan.ll 2010-01-02 21:14:43 +0000 @@ -99,7 +99,7 @@ static int process_macroBody(YYSTYPE* yylvalP, const char *text); static int process_floatLiteral(YYSTYPE* yylvalP, char *buffer); static int process_stringLiteral(YYSTYPE* yylvalP, const char *buffer); -static int process_quotedStringLiteral(YYSTYPE* yylvalP, const char *buffer); +static int process_quotedStringLiteral(YYSTYPE* yylvalP, char *buffer); static int process_shellLine(YYSTYPE* yylvalP, const char *buffer); static int recognize(int token,const char *); static void SetMode(int newmode); @@ -786,7 +786,7 @@ } -static int process_quotedStringLiteral(YYSTYPE* yylvalP, const char *buffer) +static int process_quotedStringLiteral(YYSTYPE* yylvalP, char *buffer) { char * pCloseQuote = strchr(buffer, '\"'); if(pCloseQuote == NULL) --- a/cli/scan.cc 2006-11-21 05:31:09 +0000 +++ b/cli/scan.cc 2010-01-02 21:15:01 +0000 @@ -622,7 +622,7 @@ static int process_macroBody(YYSTYPE* yylvalP, const char *text); static int process_floatLiteral(YYSTYPE* yylvalP, char *buffer); static int process_stringLiteral(YYSTYPE* yylvalP, const char *buffer); -static int process_quotedStringLiteral(YYSTYPE* yylvalP, const char *buffer); +static int process_quotedStringLiteral(YYSTYPE* yylvalP, char *buffer); static int process_shellLine(YYSTYPE* yylvalP, const char *buffer); static int recognize(int token,const char *); static void SetMode(int newmode); @@ -2608,7 +2608,7 @@ } -static int process_quotedStringLiteral(YYSTYPE* yylvalP, const char *buffer) +static int process_quotedStringLiteral(YYSTYPE* yylvalP, char *buffer) { char * pCloseQuote = strchr(buffer, '\"'); if(pCloseQuote == NULL)