mirror of
https://github.com/mirror/make.git
synced 2025-03-25 01:00:30 +08: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
@ -675,7 +675,7 @@ int strcasecmp (const char *s1, const char *s2);
|
||||
# define strncasecmp strncmpi
|
||||
# else
|
||||
/* 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
|
||||
|
||||
|
@ -688,7 +688,7 @@ strcasecmp (const char *s1, const char *s2)
|
||||
substitute for it, define our own version. */
|
||||
|
||||
int
|
||||
strncasecmp (const char *s1, const char *s2, int n)
|
||||
strncasecmp (const char *s1, const char *s2, size_t n)
|
||||
{
|
||||
while (n-- > 0)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user