Compiler warning fix
This commit is contained in:
parent
3290604a80
commit
c1585a6b5e
4 changed files with 7 additions and 9 deletions
|
@ -160,6 +160,3 @@ _PROTOTYPE(void process_params, (program_counter *pc, int func ));
|
|||
_PROTOTYPE(int yyparse, (void));
|
||||
_PROTOTYPE(int yylex, (void));
|
||||
|
||||
/* Other things... */
|
||||
_PROTOTYPE(int getopt, (int, char * [], char * ));
|
||||
|
||||
|
|
|
@ -37,7 +37,9 @@ _PROTOTYPE(int newaccess, (char *file));
|
|||
_PROTOTYPE(void grep, (char *file, char *user));
|
||||
_PROTOTYPE(int date_exp, (void));
|
||||
_PROTOTYPE(char *date_pat, (time_t t));
|
||||
/*
|
||||
_PROTOTYPE(void regerror, (char *s));
|
||||
*/
|
||||
_PROTOTYPE(void error, (char *s, char *t));
|
||||
|
||||
int main(argc, argv)
|
||||
|
@ -215,9 +217,9 @@ time_t t;
|
|||
}
|
||||
|
||||
void regerror(s)
|
||||
char *s;
|
||||
const char *s;
|
||||
{ /* regcomp() needs this */
|
||||
error("REGULAR EXPRESSION ERROR (%s)", s);
|
||||
error("REGULAR EXPRESSION ERROR (%s)", (char *) s);
|
||||
}
|
||||
|
||||
void error(s, t)
|
||||
|
|
|
@ -75,7 +75,7 @@ _PROTOTYPE(int main, (int argc, char **argv));
|
|||
_PROTOTYPE(void dosrch, (char *ifnm));
|
||||
_PROTOTYPE(void shwlin, (char *fnm, int linnum, char *line));
|
||||
_PROTOTYPE(int matlin, (char *line));
|
||||
_PROTOTYPE(void regerror, (char *s));
|
||||
_PROTOTYPE(void regerror, (const char *s));
|
||||
|
||||
/* External data */
|
||||
|
||||
|
@ -372,8 +372,8 @@ char *line; /* Line to match */
|
|||
|
||||
|
||||
void regerror(s)
|
||||
char *s;
|
||||
const char *s;
|
||||
{
|
||||
printf("%s\n", s);
|
||||
printf("%s\n", (char *) s);
|
||||
exit(1);
|
||||
}
|
||||
|
|
|
@ -75,7 +75,6 @@ _PROTOTYPE(void usage, (void));
|
|||
_PROTOTYPE(char *get_line, (void));
|
||||
_PROTOTYPE(void string_file, (void));
|
||||
_PROTOTYPE(void add_string, (char *str));
|
||||
_PROTOTYPE(int getopt, (int argc, char **argv, char *optstring));
|
||||
|
||||
int main(argc, argv)
|
||||
int argc;
|
||||
|
|
Loading…
Reference in a new issue