From e41b11fa0a26de479bc2843682aaf2d383e8032b Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Fri, 16 May 2014 18:03:31 +0200 Subject: [PATCH] use size_t for strspn() return value --- i3bar/src/workspaces.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/i3bar/src/workspaces.c b/i3bar/src/workspaces.c index ee2112fe..e89af4f6 100644 --- a/i3bar/src/workspaces.c +++ b/i3bar/src/workspaces.c @@ -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] == ':') -- 2.39.5