mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 13:09:22 +00:00
Fix "make check" failure with an ISO C 23 conforming C compiler.
Prompted by <https://lists.gnu.org/archive/html/bug-gperf/2025-04/msg00002.html>. * tests/smtp.gperf (my_case_strcmp, main): Convert from K&R C syntax to ISO C 90 syntax.
This commit is contained in:
@@ -124,9 +124,7 @@ Xref
|
||||
#include <ctype.h>
|
||||
|
||||
static int
|
||||
my_case_strcmp (s1, s2)
|
||||
register const char *s1;
|
||||
register const char *s2;
|
||||
my_case_strcmp (const char *s1, const char *s2)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
@@ -143,9 +141,7 @@ my_case_strcmp (s1, s2)
|
||||
}
|
||||
|
||||
int
|
||||
main (argc, argv)
|
||||
int argc;
|
||||
char *argv[];
|
||||
main (int argc, char *argv[])
|
||||
{
|
||||
int i, j, k, n, exitcode;
|
||||
size_t len;
|
||||
|
||||
Reference in New Issue
Block a user