summaryrefslogtreecommitdiff
path: root/net/slirp.c
diff options
context:
space:
mode:
authorGeoffrey Thomas <geofft@ldpreload.com>2011-12-17 04:23:59 -0500
committerStefan Hajnoczi <stefanha@linux.vnet.ibm.com>2011-12-19 10:42:44 +0000
commitb15ba6c95147e62671b29580c3b9056773cc496e (patch)
tree4d33646fa55fc44bcafeddb02dbd36e503b8d7b6 /net/slirp.c
parent7b011fbc050d442a20ed5d2a29724570c1557661 (diff)
downloadqemu-b15ba6c95147e62671b29580c3b9056773cc496e.tar.gz
qemu-b15ba6c95147e62671b29580c3b9056773cc496e.tar.bz2
qemu-b15ba6c95147e62671b29580c3b9056773cc496e.zip
slirp: Fix typo in net_slirp_hostfwd_remove
Report an error when err is nonzero, not when it is zero. Signed-off-by: Geoffrey Thomas <geofft@ldpreload.com> Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Diffstat (limited to 'net/slirp.c')
-rw-r--r--net/slirp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/slirp.c b/net/slirp.c
index 6646ecb1c8..18e07ba609 100644
--- a/net/slirp.c
+++ b/net/slirp.c
@@ -351,7 +351,7 @@ void net_slirp_hostfwd_remove(Monitor *mon, const QDict *qdict)
host_addr, host_port);
monitor_printf(mon, "host forwarding rule for %s %s\n", src_str,
- err ? "removed" : "not found");
+ err ? "not found" : "removed");
return;
fail_syntax: