]> git.ipfire.org Git - thirdparty/make.git/commitdiff
* src/misc.c (strncasecmp): Use size_t for length to match std.
authorPaul Smith <psmith@gnu.org>
Sat, 24 Sep 2022 14:46:55 +0000 (10:46 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 25 Sep 2022 17:37:12 +0000 (13:37 -0400)
* src/misc.h (strncasecmp): Fix the declaration.

src/makeint.h
src/misc.c

index 54b500f3ae881e10d294f8b6e3f970dbc5ad23a0..a9cc864fd4cb19786a4b90a0441afda52e5d8024 100644 (file)
@@ -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
 
index 597e7a336b851a0fd664148063e41b5220d3316f..c309084e08c8d15beb7458a4fa13956a8a62067e 100644 (file)
@@ -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)
     {