diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/socket.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/net/socket.c b/net/socket.c index ecd165ffb0..b8c931e762 100644 --- a/net/socket.c +++ b/net/socket.c @@ -489,7 +489,7 @@ static int net_socket_listen_init(NetClientState *peer, { NetClientState *nc; NetSocketState *s; - SocketAddressLegacy *saddr; + SocketAddress *saddr; int ret; Error *local_error = NULL; @@ -501,7 +501,7 @@ static int net_socket_listen_init(NetClientState *peer, ret = socket_listen(saddr, &local_error); if (ret < 0) { - qapi_free_SocketAddressLegacy(saddr); + qapi_free_SocketAddress(saddr); error_report_err(local_error); return -1; } @@ -514,20 +514,20 @@ static int net_socket_listen_init(NetClientState *peer, net_socket_rs_init(&s->rs, net_socket_rs_finalize); qemu_set_fd_handler(s->listen_fd, net_socket_accept, NULL, s); - qapi_free_SocketAddressLegacy(saddr); + qapi_free_SocketAddress(saddr); return 0; } typedef struct { NetClientState *peer; - SocketAddressLegacy *saddr; + SocketAddress *saddr; char *model; char *name; } socket_connect_data; static void socket_connect_data_free(socket_connect_data *c) { - qapi_free_SocketAddressLegacy(c->saddr); + qapi_free_SocketAddress(c->saddr); g_free(c->model); g_free(c->name); g_free(c); |