about summary refs log tree commit diff
path: root/string/strncmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'string/strncmp.c')
-rw-r--r--string/strncmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/string/strncmp.c b/string/strncmp.c
index f586d592e6..d79305a871 100644
--- a/string/strncmp.c
+++ b/string/strncmp.c
@@ -31,8 +31,8 @@
 int
 STRNCMP (const char *s1, const char *s2, size_t n)
 {
-  unsigned reg_char c1 = '\0';
-  unsigned reg_char c2 = '\0';
+  unsigned char c1 = '\0';
+  unsigned char c2 = '\0';
 
   if (n >= 4)
     {