Skip to contentSkip to conversation

slirp: Fix typo in net_slirp_hostfwd_remove

PATCH Applied Geoffrey Thomas 3 participants 3 messages Dec 17, 2011 – Dec 19, 2011 Networking

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slirp: Fix typo in net_slirp_hostfwd_remove

Report an error when err is nonzero, not when it is zero.

---
 net/slirp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/slirp.c +1 -1
index 6646ecb..18e07ba 100644
@@ -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:
Signature · 1 line
1.7.7.3
#1 lore raw
Quoted 20 lines · Geoffrey Thomas

Report an error when err is nonzero, not when it is zero.

---
 net/slirp.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/slirp.c +1 -1
index 6646ecb..18e07ba 100644
@@ -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;
 
Quoted 1 line

fail_syntax:

Oops, obviously. Stefan, should be another trivial one for you.

Thanks,
Jan