summaryrefslogtreecommitdiff
path: root/handle.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-22 12:16:06 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-04-22 12:16:06 -0700
commit61bde5017786d60df7cc377a3b9f2e6bb11caeef (patch)
treee5b03bded6e0760bbedd8547b839beea7ff80ba9 /handle.c
parentcaffed31bcc00bb588ee3bc956a93f80da80fdc6 (diff)
Assume target platforms have strncasecmp nowHEADmaster
It has been required since Unix98/SUSv2 Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/app/xmodmap/-/merge_requests/6>
Diffstat (limited to 'handle.c')
-rw-r--r--handle.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/handle.c b/handle.c
index ffbfe12..cee561f 100644
--- a/handle.c
+++ b/handle.c
@@ -38,10 +38,7 @@ from The Open Group.
#include "wq.h"
#include <stdlib.h>
#include <stdint.h>
-
-#ifdef HAVE_STRNCASECMP
#include <strings.h>
-#endif
static XModifierKeymap *map = NULL;
@@ -830,27 +827,6 @@ do_clear(char *line, int len)
add_to_work_queue (uop);
}
-#ifndef HAVE_STRNCASECMP
-static int
-strncasecmp(const char *a, const char *b, int n)
-{
- int i;
- int a1, b1;
-
- for (i = 0; i < n; i++, a++, b++) {
- if (!*a) return -1;
- if (!*b) return 1;
-
- if (*a != *b) {
- a1 = (isascii(*a) && isupper(*a)) ? tolower(*a) : *a;
- b1 = (isascii(*b) && isupper(*b)) ? tolower(*b) : *b;
- if (a1 != b1) return b1 - a1;
- }
- }
- return 0;
-}
-#endif
-
/*
* do_pointer = get list of numbers of the form
*