From 4b7abf1e2285ff89f588d5cc8a2dd6c9502736a9 Mon Sep 17 00:00:00 2001 From: Vincent Torri Date: Wed, 26 May 2021 22:40:11 +0200 Subject: [PATCH] tyls: use eina_fnmatch Reviewers: raster, billiob Reviewed By: billiob Differential Revision: https://phab.enlightenment.org/D12264 --- src/bin/tyls.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/bin/tyls.c b/src/bin/tyls.c index 7e8644c1..1e8ff949 100644 --- a/src/bin/tyls.c +++ b/src/bin/tyls.c @@ -10,7 +10,6 @@ #include #include #include -#include #include "private.h" #include "tycommon.h" @@ -471,7 +470,7 @@ filematch(const char *name, const Cmatch *m) for (i = 0; m[i].match; i++) { - if (!fnmatch(m[i].match, name, 0)) + if (eina_fnmatch(m[i].match, name, 0)) return m[i].icon; } return NULL; @@ -505,7 +504,7 @@ printmatch(const char *name, const Cmatch *m) for (i = 0; m[i].match; i++) { - if (!fnmatch(m[i].match, name, 0)) + if (eina_fnmatch(m[i].match, name, 0)) { if (m[i].fr <= 5) colorprint(CUBE, FG, m[i].fr, m[i].fg, m[i].fb); if (m[i].br <= 5) colorprint(CUBE, BG, m[i].br, m[i].bg, m[i].bb);