mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +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:
@@ -48,7 +48,7 @@ int read_sk_queues(void)
|
||||
pr_err("Failed to allocate packet header\n");
|
||||
break;
|
||||
}
|
||||
ret = pb_read_eof(fd, &pkt->entry, sk_packet_entry);
|
||||
ret = pb_read_one_eof(fd, &pkt->entry, PB_SK_QUEUES);
|
||||
if (ret <= 0)
|
||||
break;
|
||||
|
||||
|
Reference in New Issue
Block a user