diff options
-rw-r--r-- | xlsclients.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/xlsclients.c b/xlsclients.c index 94ee214..f0adbdc 100644 --- a/xlsclients.c +++ b/xlsclients.c @@ -253,7 +253,7 @@ typedef struct { xcb_query_tree_cookie_t *tree_cookie; xcb_window_t *win; xcb_window_t orig_win; - int list_length; + unsigned int list_length; int verbose; int maxcmdlen; } child_wm_state; @@ -265,9 +265,9 @@ static void child_info(void *closure) xcb_connection_t *c = cs->c; int verbose = cs->verbose; int maxcmdlen = cs->maxcmdlen; - int i, j; + unsigned int i, j; - int child_count, num_rep; + unsigned int child_count, num_rep; xcb_query_tree_reply_t **qt_reply; for (i = 0; i < cs->list_length; i++) { @@ -509,15 +509,15 @@ show_client_properties(void *closure) if (cs->verbose) { if (wm_class && wm_class->type) { const char *res_name, *res_class; - int name_len, class_len; + int name_len, class_len; /* Must be int for use with %.*s */ res_name = xcb_get_property_value(wm_class); - name_len = strnlen(res_name, wm_class->value_len) + 1; - class_len = wm_class->value_len - name_len; + name_len = (int) strnlen(res_name, wm_class->value_len) + 1; + class_len = (int) wm_class->value_len - name_len; if (class_len > 0) { res_class = res_name + name_len; } else { res_class = Nil; - class_len = strlen(res_class); + class_len = (int) strlen(res_class); } printf (" Instance/Class: %.*s/%.*s", |