diff options
author | okan <okan> | 2015-06-30 18:42:50 +0000 |
---|---|---|
committer | okan <okan> | 2015-06-30 18:42:50 +0000 |
commit | 6b8b8562172c860b8341fc9acf45ee7e2880e45a (patch) | |
tree | ea04f17452a7c1456a8defc0724a8238c6ccd3f4 /search.c | |
parent | 8515d717ae5bb336e089e9c10a92b499de5d4c81 (diff) | |
download | cwm-6b8b8562172c860b8341fc9acf45ee7e2880e45a.tar.gz cwm-6b8b8562172c860b8341fc9acf45ee7e2880e45a.tar.xz cwm-6b8b8562172c860b8341fc9acf45ee7e2880e45a.zip |
style and spacing nits
Diffstat (limited to 'search.c')
-rw-r--r-- | search.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/search.c b/search.c index 9ddfd79..edb3421 100644 --- a/search.c +++ b/search.c @@ -42,10 +42,6 @@ static void search_match_path_exec(struct menu_q *, struct menu_q *, char *); static int strsubmatch(char *, char *, int); -/* - * Match: label, title, class. - */ - void search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) { @@ -66,7 +62,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) TAILQ_FOREACH(mi, menuq, entry) { int tier = -1, t; - struct client_ctx *cc = mi->ctx; + struct client_ctx *cc = (struct client_ctx *)mi->ctx; /* First, try to match on labels. */ if (cc->label != NULL && strsubmatch(search, cc->label, 0)) { @@ -130,11 +126,9 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search) void search_print_client(struct menu *mi, int list) { - struct client_ctx *cc; + struct client_ctx *cc = (struct client_ctx *)mi->ctx; char flag = ' '; - cc = mi->ctx; - if (cc == client_current()) flag = '!'; else if (cc->flags & CLIENT_HIDDEN) |