summaryrefslogtreecommitdiffstats
path: root/contrib/argp-standalone/strcasecmp.c
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2018-07-27 08:45:48 +0000
committerNiels de Vos <ndevos@redhat.com>2018-07-28 12:54:33 +0000
commit379d4279601f694465cc7eaffcb737410d5d9e31 (patch)
tree47be48bf3fecb31ee9aa6fbd1ea9442af90e8584 /contrib/argp-standalone/strcasecmp.c
parent7131de81f72dda0ef685ed60d0887c6e14289b8c (diff)
build: remove bundled arg-standalone
libargp or argp-standalone is available on all commonly used distributions. There is no need to bundle an unmaintained version of argp-standalone in this repository anymore. FreeBSD places the argp.h file in /usr/local/include when argp-standalone is installed. This path is not added to CPPFLAGS by default, so thats done in configure.ac as well. Change-Id: I384a53ab0a008ec9d48fd83afeaf8fbc197e91ee Fixes: bz#1609337 Signed-off-by: Niels de Vos <ndevos@redhat.com>
Diffstat (limited to 'contrib/argp-standalone/strcasecmp.c')
-rw-r--r--contrib/argp-standalone/strcasecmp.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/contrib/argp-standalone/strcasecmp.c b/contrib/argp-standalone/strcasecmp.c
deleted file mode 100644
index 9c1637232fd..00000000000
--- a/contrib/argp-standalone/strcasecmp.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* strcasecmp.c
- *
- */
-
-/* Written by Niels Möller <nisse@lysator.liu.se>
- *
- * This file is hereby placed in the public domain.
- */
-
-#include <ctype.h>
-int strcasecmp(const char *, const char *);
-
-int strcasecmp(const char *s1, const char *s2)
-{
- unsigned i;
-
- for (i = 0; s1[i] && s2[i]; i++)
- {
- unsigned char c1 = tolower( (unsigned char) s1[i]);
- unsigned char c2 = tolower( (unsigned char) s2[i]);
-
- if (c1 < c2)
- return -1;
- else if (c1 > c2)
- return 1;
- }
-
- return !s2[i] - !s1[i];
-}