2
0
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:
Pavel Emelyanov
2014-02-04 19:25:33 +04:00
parent 9857acc0a2
commit 8a827ba403
5 changed files with 27 additions and 21 deletions

View File

@@ -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)