]> Git Repo - qemu.git/blobdiff - net/socket.c
monitor: Use getter/setter functions for cur_mon
[qemu.git] / net / socket.c
index 2d21fddd9cd6e72c69495ab8b295ef0af9cbc44e..15b410e8d82541ae86b980e4f0d68ddd06334541 100644 (file)
@@ -727,7 +727,7 @@ int net_init_socket(const Netdev *netdev, const char *name,
     if (sock->has_fd) {
         int fd, ret;
 
-        fd = monitor_fd_param(cur_mon, sock->fd, errp);
+        fd = monitor_fd_param(monitor_cur(), sock->fd, errp);
         if (fd == -1) {
             return -1;
         }
This page took 0.02195 seconds and 4 git commands to generate.