about summary refs log tree commit diff
path: root/kbfunc.c
diff options
context:
space:
mode:
authoroga <oga>2008-03-22 14:09:02 +0000
committeroga <oga>2008-03-22 14:09:02 +0000
commitcd46788d85428b539975d8923549bc282eb1b68d (patch)
tree433999402be4eb34a7dd9b7619a49698519fcf76 /kbfunc.c
parentfead0d511fef0f54cca29b3c4af68ab80289c117 (diff)
downloadcwm-cd46788d85428b539975d8923549bc282eb1b68d.tar.gz
cwm-cd46788d85428b539975d8923549bc282eb1b68d.tar.xz
cwm-cd46788d85428b539975d8923549bc282eb1b68d.zip
Remove a bunch of unused variables and incorrect comments.
"ok with me" okan@.
Diffstat (limited to 'kbfunc.c')
-rw-r--r--kbfunc.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 585107b..049f56b 100644
--- a/kbfunc.c
+++ b/kbfunc.c
@@ -178,8 +178,8 @@ kbfunc_client_search(struct client_ctx *scratch, void *arg)
 	}
 
 	if ((mi = search_start(&menuq,
-		    search_match_client, NULL,
-		    search_print_client, "window", 0)) != NULL) {
+		    search_match_client, search_print_client,
+		        "window", 0)) != NULL) {
 		cc = (struct client_ctx *)mi->ctx;
 		if (cc->flags & CLIENT_HIDDEN)
 			client_unhide(cc);
@@ -213,7 +213,7 @@ kbfunc_menu_search(struct client_ctx *scratch, void *arg)
 	}
 
 	if ((mi = search_start(&menuq,
-		    search_match_text, NULL, NULL, "application", 0)) != NULL)
+		    search_match_text, NULL, "application", 0)) != NULL)
 		u_spawn(((struct cmd *)mi->ctx)->image);
 
 	while ((mi = TAILQ_FIRST(&menuq)) != NULL) {
@@ -344,7 +344,7 @@ kbfunc_exec(struct client_ctx *scratch, void *arg)
 	}
 
 	if ((mi = search_start(&menuq,
-		    search_match_exec, NULL, NULL, label, 1)) != NULL) {
+		    search_match_exec, NULL, label, 1)) != NULL) {
 		switch (cmd) {
 			case CWM_EXEC_PROGRAM:
 				u_spawn(mi->text);
@@ -419,7 +419,7 @@ kbfunc_ssh(struct client_ctx *scratch, void *arg)
 
 
 	if ((mi = search_start(&menuq,
-		    search_match_exec, NULL, NULL, "ssh", 1)) != NULL) {
+		    search_match_exec, NULL, "ssh", 1)) != NULL) {
 		conf_cmd_refresh(&Conf);
 		l = snprintf(cmd, sizeof(cmd), "%s -e ssh %s", Conf.termpath,
 		    mi->text);