static void net_socket_cleanup(NetClientState *nc)

{

    NetSocketState *s = DO_UPCAST(NetSocketState, nc, nc);

    qemu_set_fd_handler(s->fd, NULL, NULL, NULL);

    close(s->fd);

}

static void net_socket_cleanup(NetClientState *nc)

{

    NetSocketState *s = DO_UPCAST(NetSocketState, nc, nc);

    qemu_set_fd_handler(s->fd, NULL, NULL, NULL);

    close(s->fd);

}

static void FUNC_0(NetClientState *VAR_0)

{

    NetSocketState *s = DO_UPCAST(NetSocketState, VAR_0, VAR_0);

    qemu_set_fd_handler(s->fd, NULL, NULL, NULL);

    close(s->fd);

}

static void FUNC_0(NetClientState *VAR_0)
{ NetSocketState *s = DO_UPCAST(NetSocketState, VAR_0, VAR_0); qemu_set_fd_handler(s->fd, NULL, NULL, NULL); close(s->fd); }