swima-collector: Use proper type for field precision
This commit is contained in:
@@ -437,7 +437,8 @@ static bool collect_tags(private_swima_collector_t *this, char *pathname,
|
|||||||
|
|
||||||
sw_locator = chunk_empty;
|
sw_locator = chunk_empty;
|
||||||
pos = strstr(pathname, "/swidtag");
|
pos = strstr(pathname, "/swidtag");
|
||||||
if (pos && asprintf(&uri, "file://%.*s", pos - pathname, pathname) > 0)
|
if (pos &&
|
||||||
|
asprintf(&uri, "file://%.*s", (int)(pos - pathname), pathname) > 0)
|
||||||
{
|
{
|
||||||
sw_locator = chunk_from_str(uri);
|
sw_locator = chunk_from_str(uri);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user