a couple of inconsistencies

make pmatchregex regex_error_desc return type match cppregex.cpp and
posixregex.c

make the extern declaration for loadsyms[] in options.c match the
one in symbols.c.
This commit is contained in:
nhmall
2022-09-14 20:23:48 -04:00
parent c2a9343367
commit 1c177dcb39
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ static struct allopt_t allopt[SIZE(allopt_init)];
/* use rest of file */
extern char configfile[]; /* for messages */
extern struct symparse loadsyms[];
extern const struct symparse loadsyms[];
#if defined(TOS) && defined(TEXTCOLOR)
extern boolean colors_changed; /* in tos.c */
#endif

View File

@@ -41,7 +41,7 @@ regex_compile(const char *s, struct nhregex *re)
return TRUE;
}
const char *
char *
regex_error_desc(struct nhregex *re UNUSED, char *errbuf)
{
return strcpy(errbuf, "pattern match compilation error");