mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-31 14:25:49 +00:00
pb: Rewrite object reading to use pb-descs
The pb_read thing is no longer a macros. This will allow to factor out objects collecting on restore. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -308,7 +308,7 @@ int collect_inet_sockets(void)
|
||||
if (!ii)
|
||||
break;
|
||||
|
||||
ret = pb_read_eof(fd, &ii->ie, inet_sk_entry);
|
||||
ret = pb_read_one_eof(fd, &ii->ie, PB_INETSK);
|
||||
if (ret <= 0)
|
||||
break;
|
||||
|
||||
@@ -482,7 +482,7 @@ void show_inetsk(int fd, struct cr_options *o)
|
||||
char src_addr[INET_ADDR_LEN] = "<unknown>";
|
||||
char dst_addr[INET_ADDR_LEN] = "<unknown>";
|
||||
|
||||
ret = pb_read_eof(fd, &ie, inet_sk_entry);
|
||||
ret = pb_read_one_eof(fd, &ie, PB_INETSK);
|
||||
if (ret <= 0)
|
||||
goto out;
|
||||
|
||||
|
Reference in New Issue
Block a user