From cf7f7de7ae62e85102920e5e63cbfe8c5aaf7f88 Mon Sep 17 00:00:00 2001
From: Paul Smith <psmith@gnu.org>
Date: Sat, 24 Sep 2022 10:46:55 -0400
Subject: [PATCH] * src/misc.c (strncasecmp): Use size_t for length to match
 std.

* src/misc.h (strncasecmp): Fix the declaration.
---
 src/makeint.h | 2 +-
 src/misc.c    | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/makeint.h b/src/makeint.h
index 54b500f3..a9cc864f 100644
--- a/src/makeint.h
+++ b/src/makeint.h
@@ -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
 
diff --git a/src/misc.c b/src/misc.c
index 597e7a33..c309084e 100644
--- a/src/misc.c
+++ b/src/misc.c
@@ -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)
     {