cgroups: use tight scoping

parent 01e5fa07
......@@ -1315,7 +1315,7 @@ static inline bool cgfsng_create(void *hdata)
{
struct cgfsng_handler_data *d = hdata;
char *tmp, *cgname, *offset;
int i, ret;
int i;
int idx = 0;
size_t len;
......@@ -1343,6 +1343,8 @@ again:
goto out_free;
}
if (idx) {
int ret;
ret = snprintf(offset, 5, "-%d", idx);
if (ret < 0 || (size_t)ret >= 5) {
FILE *f = fopen("/dev/null", "w");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment