Revision e0efb993 migration-unix.c

b/migration-unix.c
147 147
{
148 148
    struct sockaddr_un addr;
149 149
    socklen_t addrlen = sizeof(addr);
150
    int s = (unsigned long)opaque;
150
    int s = (intptr_t)opaque;
151 151
    QEMUFile *f;
152 152
    int c;
153 153

  
......
204 204
    }
205 205

  
206 206
    qemu_set_fd_handler2(sock, NULL, unix_accept_incoming_migration, NULL,
207
			 (void *)(unsigned long)sock);
207
			 (void *)(intptr_t)sock);
208 208

  
209 209
    return 0;
210 210

  

Also available in: Unified diff