summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dmenu.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/dmenu.c b/dmenu.c
index 0540141..0acd815 100644
--- a/dmenu.c
+++ b/dmenu.c
@@ -102,17 +102,6 @@ cleanup(void)
XCloseDisplay(dpy);
}
-static char *
-cistrstr(const char *s, const char *sub)
-{
- size_t len;
-
- for (len = strlen(sub); *s; s++)
- if (!strncasecmp(s, sub, len))
- return (char *)s;
- return NULL;
-}
-
static int
drawitem(struct item *item, int x, int y, int w)
{
@@ -733,7 +722,7 @@ main(int argc, char *argv[])
fast = 1;
else if (!strcmp(argv[i], "-i")) { /* case-insensitive item matching */
fstrncmp = strncasecmp;
- fstrstr = cistrstr;
+ fstrstr = strcasestr;
} else if (!strcmp(argv[i], "-P")) /* is the input a password */
passwd = 1;
else if (i + 1 == argc)