diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-04-05 17:36:03 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-04-05 17:36:03 +0000 |
commit | 4d5223d41a59ca958a4b7d498ad4cb8409fb52e2 (patch) | |
tree | ef64c08fc1b7a8df245f59608b2b626d5d588002 /app/cwm/search.c | |
parent | 86b2e9381ab5a9f4e524546dc72e2cfa2b5e597c (diff) |
add missing proto; replace magic number
Diffstat (limited to 'app/cwm/search.c')
-rw-r--r-- | app/cwm/search.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/cwm/search.c b/app/cwm/search.c index 1cb8252b6..ec7c059fc 100644 --- a/app/cwm/search.c +++ b/app/cwm/search.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: search.c,v 1.29 2013/04/05 17:07:25 okan Exp $ + * $OpenBSD: search.c,v 1.30 2013/04/05 17:36:02 okan Exp $ */ #include <sys/param.h> @@ -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 |