mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
migration: replace qemu_stdio_fd with qemu_get_fd
Reviewed-by: Orit Wasserman <owasserm@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
70eb633034
commit
d263a20bcf
4 changed files with 3 additions and 15 deletions
11
savevm.c
11
savevm.c
|
@ -311,17 +311,6 @@ QEMUFile *qemu_popen_cmd(const char *command, const char *mode)
|
|||
return qemu_popen(popen_file, mode);
|
||||
}
|
||||
|
||||
int qemu_stdio_fd(QEMUFile *f)
|
||||
{
|
||||
QEMUFileStdio *p;
|
||||
int fd;
|
||||
|
||||
p = (QEMUFileStdio *)f->opaque;
|
||||
fd = fileno(p->stdio_file);
|
||||
|
||||
return fd;
|
||||
}
|
||||
|
||||
static const QEMUFileOps stdio_file_read_ops = {
|
||||
.get_fd = stdio_get_fd,
|
||||
.get_buffer = stdio_get_buffer,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue