]> git.sur5r.net Git - i3/i3/commitdiff
use size_t for strspn() return value
authorMichael Stapelberg <michael@stapelberg.de>
Fri, 16 May 2014 16:03:31 +0000 (18:03 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Fri, 16 May 2014 16:03:31 +0000 (18:03 +0200)
i3bar/src/workspaces.c

index ee2112feee0a7fcfa8087432019ccf9ca8b29ba5..e89af4f69e9120f91e39ac44c23c4f8b96ecbf96 100644 (file)
@@ -115,7 +115,7 @@ static int workspaces_string_cb(void *params_, const unsigned char *val, size_t
                 snprintf(ws_num, sizeof(ws_num), "%d", params->workspaces_walk->num);
 
                 /* Calculate the length of the number str in the name */
-                int offset = strspn(ws_name, ws_num);
+                size_t offset = strspn(ws_name, ws_num);
 
                 /* Also strip off the conventional ws name delimiter */
                 if (offset && ws_name[offset] == ':')