Revision e0efb993 migration-tcp.c

b/migration-tcp.c
139 139
{
140 140
    struct sockaddr_in addr;
141 141
    socklen_t addrlen = sizeof(addr);
142
    int s = (unsigned long)opaque;
142
    int s = (intptr_t)opaque;
143 143
    QEMUFile *f;
144 144
    int c;
145 145

  
......
194 194
        goto err;
195 195

  
196 196
    qemu_set_fd_handler2(s, NULL, tcp_accept_incoming_migration, NULL,
197
                         (void *)(unsigned long)s);
197
                         (void *)(intptr_t)s);
198 198

  
199 199
    return 0;
200 200

  

Also available in: Unified diff