summaryrefslogtreecommitdiff
path: root/lib/c-strncasecmp.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/c-strncasecmp.c')
-rw-r--r--lib/c-strncasecmp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/c-strncasecmp.c b/lib/c-strncasecmp.c
index fd5e218b1b9..02bc0f2ecd5 100644
--- a/lib/c-strncasecmp.c
+++ b/lib/c-strncasecmp.c
@@ -1,6 +1,5 @@
/* c-strncasecmp.c -- case insensitive string comparator in C locale
- Copyright (C) 1998-1999, 2005-2006, 2009-2021 Free Software
- Foundation, Inc.
+ Copyright (C) 1998-1999, 2005-2006, 2009-2021 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -53,5 +52,5 @@ c_strncasecmp (const char *s1, const char *s2, size_t n)
/* On machines where 'char' and 'int' are types of the same size, the
difference of two 'unsigned char' values - including the sign bit -
doesn't fit in an 'int'. */
- return (c1 > c2 ? 1 : c1 < c2 ? -1 : 0);
+ return _GL_CMP (c1, c2);
}