From f18d2c94c2efe8d580aa9b1cd71f83bfe10474aa Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 5 Apr 2013 17:36:02 +0000 Subject: add missing proto; replace magic number --- search.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'search.c') diff --git a/search.c b/search.c index e46077e..2ee9d26 100644 --- a/search.c +++ b/search.c @@ -33,8 +33,11 @@ #include "calmwm.h" -#define PATH_EXEC 0x1 +#define PATH_ANY 0x0001 +#define PATH_EXEC 0x0002 +static void search_match_path(struct menu_q *, struct menu_q *, + char *, int); static int strsubmatch(char *, char *, int); /* @@ -198,7 +201,7 @@ search_match_path_exec(struct menu_q *menuq, struct menu_q *resultq, char *searc void search_match_path_any(struct menu_q *menuq, struct menu_q *resultq, char *search) { - return (search_match_path(menuq, resultq, search, 0)); + return (search_match_path(menuq, resultq, search, PATH_ANY)); } void -- cgit 1.4.1