From 8b687bf04b3412df21ad38e31d0ad54e983b5114 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 30 Jun 2015 19:02:24 +0000 Subject: no longer need to pass down format strings after introducing search_print_cmd --- kbfunc.c | 4 ++-- mousefunc.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kbfunc.c b/kbfunc.c index 872af3a..ccdd1c2 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.110 2015/06/30 18:54:12 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.111 2015/06/30 19:02:24 okan Exp $ */ #include @@ -178,7 +178,7 @@ kbfunc_menu_cmd(struct client_ctx *cc, union arg *arg) TAILQ_INIT(&menuq); TAILQ_FOREACH(cmd, &Conf.cmdq, entry) - menuq_add(&menuq, cmd, "%s", cmd->name); + menuq_add(&menuq, cmd, NULL); if ((mi = menu_filter(sc, &menuq, "application", NULL, 0, search_match_text, search_print_cmd)) != NULL) diff --git a/mousefunc.c b/mousefunc.c index 10a03a5..20a022f 100644 --- a/mousefunc.c +++ b/mousefunc.c @@ -16,7 +16,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: mousefunc.c,v 1.93 2015/06/30 18:54:12 okan Exp $ + * $OpenBSD: mousefunc.c,v 1.94 2015/06/30 19:02:24 okan Exp $ */ #include @@ -236,7 +236,7 @@ mousefunc_menu_cmd(struct client_ctx *cc, union arg *arg) TAILQ_INIT(&menuq); TAILQ_FOREACH(cmd, &Conf.cmdq, entry) - menuq_add(&menuq, cmd, "%s", cmd->name); + menuq_add(&menuq, cmd, NULL); if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST, NULL, search_print_cmd)) != NULL) -- cgit v1.2.3-2-gb3c3