mirror of
https://git.savannah.gnu.org/git/make.git
synced 2025-01-13 01:07:36 +00:00
* src/misc.c (strncasecmp): Use size_t for length to match std.
* src/misc.h (strncasecmp): Fix the declaration.
This commit is contained in:
parent
d4cb7ae6d4
commit
cf7f7de7ae
2 changed files with 2 additions and 2 deletions
|
@ -675,7 +675,7 @@ int strcasecmp (const char *s1, const char *s2);
|
||||||
# define strncasecmp strncmpi
|
# define strncasecmp strncmpi
|
||||||
# else
|
# else
|
||||||
/* Create our own, in misc.c */
|
/* Create our own, in misc.c */
|
||||||
int strncasecmp (const char *s1, const char *s2, int n);
|
int strncasecmp (const char *s1, const char *s2, size_t n);
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -688,7 +688,7 @@ strcasecmp (const char *s1, const char *s2)
|
||||||
substitute for it, define our own version. */
|
substitute for it, define our own version. */
|
||||||
|
|
||||||
int
|
int
|
||||||
strncasecmp (const char *s1, const char *s2, int n)
|
strncasecmp (const char *s1, const char *s2, size_t n)
|
||||||
{
|
{
|
||||||
while (n-- > 0)
|
while (n-- > 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue