From: Ben Gras Date: Fri, 24 Mar 2006 14:07:45 +0000 (+0000) Subject: Fix compiler warning X-Git-Tag: v3.1.2a~152 X-Git-Url: http://zhaoyanbai.com/repos/?a=commitdiff_plain;h=5501dcd01bec1d6ccf9392c7b2bd37d8d1e4eacf;p=minix.git Fix compiler warning --- diff --git a/commands/simple/grep.c b/commands/simple/grep.c index 75bb8dcf1..d5aa30a33 100755 --- a/commands/simple/grep.c +++ b/commands/simple/grep.c @@ -55,7 +55,7 @@ static char *program; /* program name */ static char flags[26]; /* invocation flags */ static regexp *expression; /* compiled search pattern */ -static char *rerr; /* error message */ +static const char *rerr; /* error message */ /* External variables. */ extern int optind; @@ -66,7 +66,7 @@ _PROTOTYPE(int main, (int argc, char **argv)); _PROTOTYPE(static int match, (FILE *input, char *label, char *filename)); _PROTOTYPE(static char *get_line, (FILE *input)); _PROTOTYPE(static char *map_nocase, (char *line)); -_PROTOTYPE(void regerror , (char *s ) ); +_PROTOTYPE(void regerror , (const char *s ) ); _PROTOTYPE(static void tov8, (char *v8pattern, char *pattern)); int main(argc, argv) @@ -373,7 +373,7 @@ static void tov8(char *v8, char *basic) /* Regular expression code calls this routine to print errors. */ void regerror(s) -char *s; +const char *s; { rerr=s; }