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

index 52b046b9e99d473a239adeb9b77f5b9186795043..780f425d2cb7711420b11c0feadaa3ad6a05af04 100644 (file)
@@ -63,7 +63,6 @@
 #include "libvirt/libvirt-admin.h"
 #include "libvirt/virterror.h"
 
-#include "c-strcase.h"
 #include "glibcompat.h"
 
 /* Merely casting to (void) is not sufficient since the
 #define STRNEQ(a, b) (strcmp(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 STRCASEEQLEN(a, b, n) (g_ascii_strncasecmp(a, b, n) == 0)
 #define STRNEQLEN(a, b, n) (strncmp(a, b, n) != 0)
-#define STRCASENEQLEN(a, b, n) (c_strncasecmp(a, b, n) != 0)
+#define STRCASENEQLEN(a, b, n) (g_ascii_strncasecmp(a, b, n) != 0)
 #define STRPREFIX(a, b) (strncmp(a, b, strlen(b)) == 0)
-#define STRCASEPREFIX(a, b) (c_strncasecmp(a, b, strlen(b)) == 0)
+#define STRCASEPREFIX(a, b) (g_ascii_strncasecmp(a, b, strlen(b)) == 0)
 #define STRSKIP(a, b) (STRPREFIX(a, b) ? (a) + strlen(b) : NULL)
 
 #define STREQ_NULLABLE(a, b) (g_strcmp0(a, b) == 0)