constify and rename some confusing variables around cmdq.

This commit is contained in:
okan
2014-01-20 21:34:32 +00:00
parent 7263fb4c84
commit d91571c567
5 changed files with 21 additions and 20 deletions

View File

@ -178,11 +178,11 @@ kbfunc_menu_search(struct client_ctx *cc, union arg *arg)
TAILQ_INIT(&menuq);
TAILQ_FOREACH(cmd, &Conf.cmdq, entry)
menuq_add(&menuq, cmd, "%s", cmd->label);
menuq_add(&menuq, cmd, "%s", cmd->name);
if ((mi = menu_filter(sc, &menuq, "application", NULL, 0,
search_match_text, NULL)) != NULL)
u_spawn(((struct cmd *)mi->ctx)->image);
u_spawn(((struct cmd *)mi->ctx)->path);
menuq_clear(&menuq);
}