mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
img: Remove unused open_image_ro_nocheck
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
17
util.c
17
util.c
@@ -129,23 +129,6 @@ int move_img_fd(int *img_fd, int want_fd)
|
||||
return 0;
|
||||
}
|
||||
|
||||
int open_image_ro_nocheck(const char *fmt, ...)
|
||||
{
|
||||
char path[PATH_MAX];
|
||||
va_list args;
|
||||
int tmp;
|
||||
|
||||
va_start(args, fmt);
|
||||
vsprintf(path, fmt, args);
|
||||
va_end(args);
|
||||
|
||||
tmp = openat(image_dir_fd, path, O_RDONLY);
|
||||
if (tmp < 0)
|
||||
pr_warn("Can't open image %s: %m\n", path);
|
||||
|
||||
return tmp;
|
||||
}
|
||||
|
||||
int open_image(int type, unsigned long flags, ...)
|
||||
{
|
||||
char path[PATH_MAX];
|
||||
|
Reference in New Issue
Block a user