aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorokan2015-07-01 14:36:42 +0000
committerokan2015-07-01 14:36:42 +0000
commit066f93f7719e2667a64ac983db612410d7d55916 (patch)
treea0aa622a7729e65c52ced8e11522b8adf2c9dda7 /search.c
parent9249ec4a404cccff818bffa4430d447515184f1a (diff)
downloadcwm-066f93f7719e2667a64ac983db612410d7d55916.tar.gz
style
Diffstat (limited to 'search.c')
-rw-r--r--search.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/search.c b/search.c
index ccb6c88..44311fd 100644
--- a/search.c
+++ b/search.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: search.c,v 1.47 2015/07/01 14:29:36 okan Exp $
+ * $OpenBSD: search.c,v 1.48 2015/07/01 14:36:42 okan Exp $
*/
#include <sys/types.h>
@@ -134,7 +134,7 @@ search_print_cmd(struct menu *mi, int i)
special = 1;
(void)snprintf(mi->print, sizeof(mi->print),
- (special) ? "[%s]" : "%s", cmd->name);
+ (special) ? "[%s]" : "%s", cmd->name);
}
void
@@ -152,8 +152,8 @@ search_print_client(struct menu *mi, int list)
cc->matchname = cc->name;
(void)snprintf(mi->print, sizeof(mi->print), "(%d) %c[%s] %s",
- cc->group ? cc->group->num : 0, flag,
- cc->label ? cc->label : "", cc->matchname);
+ (cc->group) ? cc->group->num : 0, flag,
+ (cc->label) ? cc->label : "", cc->matchname);
}
static void