diff --git a/libs/gib/regex.c b/libs/gib/regex.c index 4b7817d4f..d2cc7f200 100644 --- a/libs/gib/regex.c +++ b/libs/gib/regex.c @@ -4619,8 +4619,7 @@ re_compile_pattern ( static struct re_pattern_buffer re_comp_buf; const char * -re_comp (s) - const char *s; +re_comp (const char *s) { reg_errcode_t ret; @@ -4657,8 +4656,7 @@ re_comp (s) int -re_exec (s) - const char *s; +re_exec (const char *s) { const int len = strlen (s); return diff --git a/libs/ruamoko/pr_cmds.c b/libs/ruamoko/pr_cmds.c index 63fc6c1e3..423f83c72 100644 --- a/libs/ruamoko/pr_cmds.c +++ b/libs/ruamoko/pr_cmds.c @@ -548,12 +548,6 @@ PF_charcount (progs_t *pr, void *data) R_FLOAT (pr) = count; } -#if (INT_MAX == 2147483647) && (INT_MIN == -2147483648) -# define INT_WIDTH 11 -#else /* I hope... */ -# define INT_WIDTH 20 -#endif - /* string () gametype */ diff --git a/libs/util/fnmatch.c b/libs/util/fnmatch.c index eea5ee92a..0d53b507f 100644 --- a/libs/util/fnmatch.c +++ b/libs/util/fnmatch.c @@ -54,10 +54,7 @@ /* Match STRING against the filename pattern PATTERN, returning zero if it matches, nonzero if not. */ int -fnmatch (pattern, string, flags) -const char *pattern; -const char *string; -int flags; +fnmatch (const char *pattern, const char *string, int flags) { register const char *p = pattern, *n = string; register unsigned char c;