diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2018-11-10 17:45:39 +0400 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2019-01-14 00:40:54 +0100 |
commit | 3ed9f823c688c0dd5dd8d2c936329168c4859d02 (patch) | |
tree | ecb05a808d31a1a7713257ddf5393a85430bbea4 /slirp/slirp.c | |
parent | 7765bee0e3bf5c5e0f396337b341c657fc1152c9 (diff) | |
download | qemu-3ed9f823c688c0dd5dd8d2c936329168c4859d02.zip qemu-3ed9f823c688c0dd5dd8d2c936329168c4859d02.tar.gz qemu-3ed9f823c688c0dd5dd8d2c936329168c4859d02.tar.bz2 |
slirp: use a dedicated field for chardev pointer
Let's not mix command line and chardev pointers.
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Diffstat (limited to 'slirp/slirp.c')
-rw-r--r-- | slirp/slirp.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/slirp/slirp.c b/slirp/slirp.c index 0498a09..0de4608 100644 --- a/slirp/slirp.c +++ b/slirp/slirp.c @@ -1068,7 +1068,7 @@ int slirp_add_hostfwd(Slirp *slirp, int is_udp, struct in_addr host_addr, return 0; } -int slirp_add_exec(Slirp *slirp, int do_pty, const void *args, +int slirp_add_exec(Slirp *slirp, void *chardev, const char *cmdline, struct in_addr *guest_addr, int guest_port) { if (!guest_addr->s_addr) { @@ -1081,7 +1081,8 @@ int slirp_add_exec(Slirp *slirp, int do_pty, const void *args, guest_addr->s_addr == slirp->vnameserver_addr.s_addr) { return -1; } - return add_exec(&slirp->exec_list, do_pty, (char *)args, *guest_addr, + + return add_exec(&slirp->exec_list, chardev, cmdline, *guest_addr, htons(guest_port)); } |