mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 06:15:24 +00:00
files: Make fd_id_generate_special return ID into pointer
Acked-by: Andrew Vagin <avagin@parallels.com> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -26,9 +26,10 @@ void fd_id_show_tree(void)
|
||||
kid_show_tree(&fd_tree);
|
||||
}
|
||||
|
||||
u32 fd_id_generate_special(struct stat *st)
|
||||
int fd_id_generate_special(struct stat *st, u32 *id)
|
||||
{
|
||||
return fd_tree.subid++;
|
||||
*id = fd_tree.subid++;
|
||||
return 1;
|
||||
}
|
||||
|
||||
int fd_id_generate(pid_t pid, FdinfoEntry *fe, struct stat *st)
|
||||
|
Reference in New Issue
Block a user