aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2014-01-20 21:34:32 +0000
committerokan2014-01-20 21:34:32 +0000
commita142331514fc5e300b8bbc97cc5bc71ca7080d7b (patch)
tree3581772313904b503a72c3509278d66a6837dba2 /kbfunc.c
parentbc4622e632abd877c52d5baa8359e834325a4f23 (diff)
downloadcwm-a142331514fc5e300b8bbc97cc5bc71ca7080d7b.tar.gz
constify and rename some confusing variables around cmdq.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 191bf22..ec6008d 100644
--- a/kbfunc.c
+++ b/kbfunc.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: kbfunc.c,v 1.87 2014/01/20 18:58:03 okan Exp $
+ * $OpenBSD: kbfunc.c,v 1.88 2014/01/20 21:34:32 okan Exp $
*/
#include <sys/param.h>
@@ -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);
}