just use strcmp instead of wrapper function

This commit is contained in:
Vogt 2020-02-13 16:56:13 +01:00
parent 6ce9003d3d
commit bb61c0ba1e
2 changed files with 1 additions and 13 deletions

View File

@ -1332,7 +1332,7 @@ devexpand(char *name)
if (strchr(name, '*') || strchr(name, '[') || strchr(name, '?')) {
devices = cp_cctowl(ft_curckt->ci_devices);
for (wl = NULL; devices; devices = devices->wl_next)
if (cp_globmatch(name, devices->wl_word))
if (!strcmp(name, devices->wl_word))
wl = wl_cons(devices->wl_word, wl);
} else if (cieq(name, "all")) {
wl = cp_cctowl(ft_curckt->ci_devices);

View File

@ -407,18 +407,6 @@ char *cp_tildexpand(const char *string)
} /* end of function cp_tildexpand */
/* Say whether the pattern p can match the string s. */
/* MW. Now simply compare strings */
bool cp_globmatch(char *p, char *s)
{
return !(strcmp(p, s));
} /* end of function cp_globmatch */
/* This function expands the leading ~ of wl_node. */
static void tilde_expand_word(wordlist *wl_node)
{