]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
use g_ascii_strcasecmp instead of c_strcasecmp from gnulib
authorPavel Hrdina <phrdina@redhat.com>
Tue, 19 Nov 2019 14:00:08 +0000 (15:00 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Tue, 10 Dec 2019 13:08:46 +0000 (14:08 +0100)
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/internal.h
tests/virhashtest.c

index bcc5a1c1579738abb57e78ca3b7cf3fbef9b3684..52b046b9e99d473a239adeb9b77f5b9186795043 100644 (file)
@@ -75,9 +75,9 @@
 
 /* String equality tests, suggested by Jim Meyering. */
 #define STREQ(a, b) (strcmp(a, b) == 0)
-#define STRCASEEQ(a, b) (c_strcasecmp(a, b) == 0)
+#define STRCASEEQ(a, b) (g_ascii_strcasecmp(a, b) == 0)
 #define STRNEQ(a, b) (strcmp(a, b) != 0)
-#define STRCASENEQ(a, b) (c_strcasecmp(a, b) != 0)
+#define STRCASENEQ(a, b) (g_ascii_strcasecmp(a, b) != 0)
 #define STREQLEN(a, b, n) (strncmp(a, b, n) == 0)
 #define STRCASEEQLEN(a, b, n) (c_strncasecmp(a, b, n) == 0)
 #define STRNEQLEN(a, b, n) (strncmp(a, b, n) != 0)
index 3132095463ee463a13d514707b3fd511e986cda7..66fa3a428e6574c074dc65b805afcec133a586ca 100644 (file)
@@ -446,7 +446,7 @@ testHashGetItems(const void *data G_GNUC_UNUSED)
 static int
 testHashEqualCompValue(const void *value1, const void *value2)
 {
-    return c_strcasecmp(value1, value2);
+    return g_ascii_strcasecmp(value1, value2);
 }
 
 static int