summaryrefslogtreecommitdiff
path: root/slirp/misc.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-10 18:00:00 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2004-10-10 18:00:00 +0000
commitf3ff649d3bf7c206460faa130d10406d1284bae0 (patch)
tree2a466bf9acf560a4921225618578251ba078413f /slirp/misc.c
parent953569d21bd552408d9714b48fb76c6003de6fe3 (diff)
downloadqemu-f3ff649d3bf7c206460faa130d10406d1284bae0.tar.gz
qemu-f3ff649d3bf7c206460faa130d10406d1284bae0.tar.bz2
qemu-f3ff649d3bf7c206460faa130d10406d1284bae0.zip
openpty fix
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1119 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/misc.c')
-rw-r--r--slirp/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/slirp/misc.c b/slirp/misc.c
index 26f8eb578d..5b809a853a 100644
--- a/slirp/misc.c
+++ b/slirp/misc.c
@@ -227,8 +227,8 @@ fork_exec(so, ex, do_pty)
#else
int
-openpty(amaster, aslave)
- int *amaster, *aslave;
+slirp_openpty(amaster, aslave)
+ int *amaster, *aslave;
{
register int master, slave;
@@ -328,7 +328,7 @@ fork_exec(so, ex, do_pty)
DEBUG_ARG("do_pty = %lx", (long)do_pty);
if (do_pty == 2) {
- if (openpty(&master, &s) == -1) {
+ if (slirp_openpty(&master, &s) == -1) {
lprint("Error: openpty failed: %s\n", strerror(errno));
return 0;
}
@@ -881,7 +881,7 @@ rsh_exec(so,ns, user, host, args)
return 0;
}
#else
- if (openpty(&fd0[0], &fd0[1]) == -1) {
+ if (slirp_openpty(&fd0[0], &fd0[1]) == -1) {
close(fd[0]);
close(fd[1]);
lprint("Error: openpty failed: %s\n", strerror(errno));