summaryrefslogtreecommitdiff
path: root/slirp/misc.c
diff options
context:
space:
mode:
authorbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-10 01:49:53 +0000
committerbalrog <balrog@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-10 01:49:53 +0000
commit242acf3af4605adce933906bdc053b2414181ec7 (patch)
treef8bd5bae08f15ee08398c1b42b2cae6ee0c8557e /slirp/misc.c
parente62ab7a153c92d6233a4eec432ac0c42c5d336c0 (diff)
Special-case CTL_ALIAS instead of CTL_DNS in udp loopback test.
At the same time remove a bogus test (tested by Jason Wessel). Quiet some gcc4 warnings from slirp compilation. git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4402 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'slirp/misc.c')
-rw-r--r--slirp/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slirp/misc.c b/slirp/misc.c
index 14808fe21d..337f8a8574 100644
--- a/slirp/misc.c
+++ b/slirp/misc.c
@@ -304,7 +304,7 @@ fork_exec(struct socket *so, const char *ex, int do_pty)
{
int s;
struct sockaddr_in addr;
- int addrlen = sizeof(addr);
+ socklen_t addrlen = sizeof(addr);
int opt;
int master = -1;
char *argv[256];