Commit 9d0875a8 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

files-reg: Use close_safe for fd variable

This makes compiler happy.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent ba85bf30
......@@ -183,7 +183,7 @@ tail:
static int dump_ghost_file(int _fd, u32 id, const struct stat *st)
{
int img, fd;
int img, fd = -1;
GhostFileEntry gfe = GHOST_FILE_ENTRY__INIT;
char lpath[32];
......@@ -215,7 +215,7 @@ static int dump_ghost_file(int _fd, u32 id, const struct stat *st)
return -1;
}
close(fd);
close_safe(&fd);
close(img);
return 0;
}
......
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