aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authoroga2008-04-15 20:24:41 +0000
committeroga2008-04-15 20:24:41 +0000
commitb31333397785733587b3bfe3adb27ff2761702b5 (patch)
treeb4fdd1360ef1add5766452793034ef73bec0ebc4 /search.c
parent137723ad08c9062a346b29d72b4b2ce55971c217 (diff)
downloadcwm-b31333397785733587b3bfe3adb27ff2761702b5.tar.gz
hit it with the knf stick.
Diffstat (limited to '')
-rw-r--r--search.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/search.c b/search.c
index 3e1be16..031d245 100644
--- a/search.c
+++ b/search.c
@@ -14,7 +14,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $Id: search.c,v 1.7 2008/03/22 14:09:02 oga Exp $
+ * $Id: search.c,v 1.8 2008/04/15 20:24:41 oga Exp $
*/
#include "headers.h"
@@ -22,7 +22,7 @@
#define SearchMask (KeyPressMask|ExposureMask)
-static int _strsubmatch(char *, char *, int);
+static int _strsubmatch(char *, char *, int);
void
search_init(struct screen_ctx *sc)
@@ -39,7 +39,7 @@ search_init(struct screen_ctx *sc)
struct menu *
search_start(struct menu_q *menuq,
- void (*match)(struct menu_q *, struct menu_q *, char *),
+ void (*match)(struct menu_q *, struct menu_q *, char *),
void (*print)(struct menu *mi, int print),
char *prompt, int dummy)
{
@@ -320,16 +320,16 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
if (cc->label != NULL && _strsubmatch(search, cc->label, 0)) {
cc->matchname = cc->label;
tier = 0;
- }
+ }
/* Then, on window names. */
if (tier < 0) {
TAILQ_FOREACH_REVERSE(wn, &cc->nameq, winname_q, entry)
- if (_strsubmatch(search, wn->name, 0)) {
- cc->matchname = wn->name;
- tier = 2;
- break;
- }
+ if (_strsubmatch(search, wn->name, 0)) {
+ cc->matchname = wn->name;
+ tier = 2;
+ break;
+ }
}
/*