mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
show: Replace one-line show_foo calls with args array
We have generic do_pb_show() call and tons of show_foo routines, that just call one with proper args. Compact the code by putting the args into array and calling the do_pb_show() in one place. Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
@@ -497,11 +497,6 @@ static struct unix_sk_info *find_unix_sk_by_ino(int ino)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void show_unixsk(int fd)
|
||||
{
|
||||
pb_show_plain_pretty(fd, PB_UNIX_SK, "1:%#x 2:%#x 3:%d 4:%d 5:%d 6:%d 7:%d 8:%#x 11:S");
|
||||
}
|
||||
|
||||
static int shutdown_unix_sk(int sk, struct unix_sk_info *ui)
|
||||
{
|
||||
int how;
|
||||
|
Reference in New Issue
Block a user