summaryrefslogtreecommitdiff
path: root/usr.sbin/config
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2019-04-15 21:20:06 +0000
committerKyle Evans <kevans@FreeBSD.org>2019-04-15 21:20:06 +0000
commitaebda5bf0627644c0080e0ab2ff6b50a9682962b (patch)
tree7cb08080f9fa3800a5b2e8df0d579c296731f271 /usr.sbin/config
parentdbd34bda9c4465f8393ac8ea49c709841e0bc0e6 (diff)
downloadsrc-test2-aebda5bf0627644c0080e0ab2ff6b50a9682962b.tar.gz
src-test2-aebda5bf0627644c0080e0ab2ff6b50a9682962b.zip
Notes
Diffstat (limited to 'usr.sbin/config')
-rw-r--r--usr.sbin/config/mkmakefile.c21
1 files changed, 2 insertions, 19 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index c9c2fbcdd06f..1dea251f76df 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -62,7 +62,6 @@ static void do_rules(FILE *);
static void do_xxfiles(char *, FILE *);
static void do_objs(FILE *);
static void do_before_depend(FILE *);
-static int opteq(const char *, const char *);
static void read_files(void);
static void sanitize_envline(char *result, const char *src);
static bool preprocess(char *line, char *result);
@@ -565,7 +564,8 @@ next:
goto nextparam;
}
SLIST_FOREACH(op, &opt, op_next)
- if (op->op_value == 0 && opteq(op->op_name, wd)) {
+ if (op->op_value == 0 &&
+ strcasecmp(op->op_name, wd) == 0) {
if (not)
match = 0;
goto nextparam;
@@ -628,23 +628,6 @@ read_files(void)
}
}
-static int
-opteq(const char *cp, const char *dp)
-{
- char c, d;
-
- for (; ; cp++, dp++) {
- if (*cp != *dp) {
- c = isupper(*cp) ? tolower(*cp) : *cp;
- d = isupper(*dp) ? tolower(*dp) : *dp;
- if (c != d)
- return (0);
- }
- if (*cp == 0)
- return (1);
- }
-}
-
static void
do_before_depend(FILE *fp)
{