summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-24 17:58:51 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-10-24 17:58:51 -0700
commit99c7b421dbd083c3c16158982eabb28758868188 (patch)
treea9d3dfa712f6fcd4b12b52612ae3bd3862a24402
parent977636f190306bddbe3d09123283484ff5bd1b33 (diff)
Handle -Wsign-compare warnings
xlsclients.c: In function ‘show_client_properties’: xlsclients.c:485:19: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 485 | for (i = 0; i < command->value_len && charsleft > 0; ) { | ^ xlsclients.c:488:15: warning: comparison of integer expressions of different signedness: ‘int’ and ‘uint32_t’ {aka ‘unsigned int’} [-Wsign-compare] 488 | if (i < command->value_len && charsleft > 0) { | ^ Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--xlsclients.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlsclients.c b/xlsclients.c
index 548f958..0fbe1cf 100644
--- a/xlsclients.c
+++ b/xlsclients.c
@@ -440,7 +440,7 @@ show_client_properties(void *closure)
xcb_get_property_reply_t *wm_class = NULL;
char *argv;
int charsleft = cs->maxcmdlen;
- int i;
+ unsigned int i;
/*
* get the WM_MACHINE and WM_COMMAND list of strings