slirp: Fix typo in net_slirp_hostfwd_remove
PATCH 1/1 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 <[email protected]>
--- net/slirp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/slirp.c +1 -1
@@ -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
Quoted 20 lines · Geoffrey Thomas
Report an error when err is nonzero, not when it is zero.
Signed-off-by Geoffrey Thomas <[email protected]>--- net/slirp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)net/slirp.c +1
-1@@ -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
Stefan Hajnoczi
AppliedQuoted 6 lines · Geoffrey Thomas
Report an error when err is nonzero, not when it is zero.
Signed-off-by Geoffrey Thomas <[email protected]>--- net/slirp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
Thanks, applied to the trivial patches tree:
http://repo.or.cz/w/qemu/stefanha.git/shortlog/refs/heads/trivial-patches
Stefan