mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 14:55:39 +00:00
pipes: Shrink pipe_should_open_transport to want_transport
It's static function near the file_desc_ops, no need for a long name. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
61e289f184
commit
f973fcabb9
5
pipes.c
5
pipes.c
@@ -239,8 +239,7 @@ static int open_pipe(struct file_desc *d)
|
|||||||
return tmp;
|
return tmp;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int pipe_should_open_transport(struct fdinfo_entry *fe,
|
static int want_transport(struct fdinfo_entry *fe, struct file_desc *d)
|
||||||
struct file_desc *d)
|
|
||||||
{
|
{
|
||||||
struct pipe_info *pi;
|
struct pipe_info *pi;
|
||||||
|
|
||||||
@@ -251,7 +250,7 @@ static int pipe_should_open_transport(struct fdinfo_entry *fe,
|
|||||||
static struct file_desc_ops pipe_desc_ops = {
|
static struct file_desc_ops pipe_desc_ops = {
|
||||||
.type = FDINFO_PIPE,
|
.type = FDINFO_PIPE,
|
||||||
.open = open_pipe,
|
.open = open_pipe,
|
||||||
.want_transport = pipe_should_open_transport,
|
.want_transport = want_transport,
|
||||||
};
|
};
|
||||||
|
|
||||||
int collect_pipes(void)
|
int collect_pipes(void)
|
||||||
|
Reference in New Issue
Block a user