mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Fix a warning regarding strncmp.
Reported by Sam James in <https://savannah.gnu.org/bugs/?63031>. * lib/getopt.c (strncmp): Declare with a prototype.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2022-09-08 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
|
Fix a warning regarding strncmp.
|
||||||
|
Reported by Sam James in <https://savannah.gnu.org/bugs/?63031>.
|
||||||
|
* lib/getopt.c (strncmp): Declare with a prototype.
|
||||||
|
|
||||||
2022-07-17 Bruno Haible <bruno@clisp.org>
|
2022-07-17 Bruno Haible <bruno@clisp.org>
|
||||||
|
|
||||||
Split autogen.sh into autopull.sh and autogen.sh.
|
Split autogen.sh into autopull.sh and autogen.sh.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"Keep this file name-space clean" means, talk to drepper@gnu.org
|
"Keep this file name-space clean" means, talk to drepper@gnu.org
|
||||||
before changing it!
|
before changing it!
|
||||||
|
|
||||||
Copyright (C) 1987-1998, 2009, 2016 Free Software Foundation, Inc.
|
Copyright (C) 1987-1998, 2009, 2016, 2022 Free Software Foundation, Inc.
|
||||||
|
|
||||||
This program is free software: you can redistribute it and/or modify
|
This program is free software: you can redistribute it and/or modify
|
||||||
it under the terms of the GNU General Public License as published by
|
it under the terms of the GNU General Public License as published by
|
||||||
@@ -194,7 +194,6 @@ static char *posixly_correct;
|
|||||||
whose names are inconsistent. */
|
whose names are inconsistent. */
|
||||||
|
|
||||||
extern char *getenv ();
|
extern char *getenv ();
|
||||||
extern int strncmp ();
|
|
||||||
|
|
||||||
static char *
|
static char *
|
||||||
my_index (const char *str, int chr)
|
my_index (const char *str, int chr)
|
||||||
@@ -209,6 +208,7 @@ my_index (const char *str, int chr)
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern int strcmp (const char *, const char *);
|
extern int strcmp (const char *, const char *);
|
||||||
|
extern int strncmp (const char *, const char *, size_t);
|
||||||
extern size_t strlen (const char *);
|
extern size_t strlen (const char *);
|
||||||
|
|
||||||
#endif /* not __GNU_LIBRARY__ */
|
#endif /* not __GNU_LIBRARY__ */
|
||||||
|
|||||||
Reference in New Issue
Block a user