aboutsummaryrefslogtreecommitdiffstats
path: root/search.c
diff options
context:
space:
mode:
authorWynn Wolf Arbor2020-03-18 19:47:57 +0100
committerWolfgang Müller2021-04-27 12:28:35 +0200
commit03b67742f6e3939ceae5f9587c60391d35259f6d (patch)
tree53632f4fd8eab5f70976d88b2550c9022eecec78 /search.c
parent13377b4e34be6d298eeb41a55df939f39ee7f5a7 (diff)
downloadcwm-03b67742f6e3939ceae5f9587c60391d35259f6d.tar.gz
Fix several sign-compare warnings
Diffstat (limited to '')
-rw-r--r--search.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/search.c b/search.c
index 3a9e1e7..e0a8c5f 100644
--- a/search.c
+++ b/search.c
@@ -97,7 +97,7 @@ search_match_client(struct menu_q *menuq, struct menu_q *resultq, char *search)
continue;
/* Current window is ranked down. */
- if ((tier < nitems(tierp) - 1) && (cc->flags & CLIENT_ACTIVE))
+ if (((unsigned)tier < nitems(tierp) - 1) && (cc->flags & CLIENT_ACTIVE))
tier++;
/* Hidden window is ranked up. */
@@ -160,7 +160,7 @@ match_path_type(struct menu_q *resultq, char *search, int flag)
struct menu *mi;
char *pattern;
glob_t g;
- int i;
+ size_t i;
xasprintf(&pattern, "%s*", search);
if (glob(pattern, GLOB_MARK, NULL, &g) != 0)