_PROTOTYPE(int yyparse, (void));
_PROTOTYPE(int yylex, (void));
-/* Other things... */
-_PROTOTYPE(int getopt, (int, char * [], char * ));
-
_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)
}
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)
_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 */
void regerror(s)
-char *s;
+const char *s;
{
- printf("%s\n", s);
+ printf("%s\n", (char *) s);
exit(1);
}
_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;