aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorokan2015-06-30 18:42:50 +0000
committerokan2015-06-30 18:42:50 +0000
commitc945e52f347e972876d0ee015c01ef60d73bccfa (patch)
treebdf35a89e391876cb74acca6c10178c5e4993f16 /search.c
parente486eca576ea66b79546c532715971cf6e56cdfe (diff)
downloadcwm-c945e52f347e972876d0ee015c01ef60d73bccfa.tar.gz
style and spacing nits
Diffstat (limited to '')
-rw-r--r--search.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/search.c b/search.c
index deff8e3..a4046cb 100644
--- a/search.c
+++ b/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.44 2015/06/28 19:50:46 okan Exp $
+ * $OpenBSD: search.c,v 1.45 2015/06/30 18:42:50 okan Exp $
*/
#include <sys/types.h>
@@ -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)