diff mbox

[03/16] net: pass monitor handle to client init functions

Message ID 1255028312-28180-4-git-send-email-markmc@redhat.com
State Under Review
Headers show

Commit Message

Mark McLoughlin Oct. 8, 2009, 6:58 p.m. UTC
Needed for e.g. looking up a file descriptor name using
monitor_get_fd() in net_init_tap()

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
 net.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/net.c b/net.c
index e93017d..898b9af 100644
--- a/net.c
+++ b/net.c
@@ -3021,7 +3021,7 @@  int net_client_init(Monitor *mon, QemuOpts *opts)
             }
 
             if (net_client_types[i].init) {
-                return net_client_types[i].init(opts, NULL);
+                return net_client_types[i].init(opts, mon);
             } else {
                 return 0;
             }