use size_t for strspn() return value

This commit is contained in:
Michael Stapelberg 2014-05-16 18:03:31 +02:00
parent 88114bc055
commit e41b11fa0a
1 changed files with 1 additions and 1 deletions

View 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] == ':')