static void nbd_accept(void *opaque)

{

    int server_fd = (uintptr_t) opaque;

    struct sockaddr_in addr;

    socklen_t addr_len = sizeof(addr);



    int fd = accept(server_fd, (struct sockaddr *)&addr, &addr_len);

    nbd_started = true;

    if (fd >= 0 && nbd_client_new(exp, fd, nbd_client_closed)) {

        nb_fds++;

    }

}

static void nbd_accept(void *opaque)

{

    int server_fd = (uintptr_t) opaque;

    struct sockaddr_in addr;

    socklen_t addr_len = sizeof(addr);



    int fd = accept(server_fd, (struct sockaddr *)&addr, &addr_len);

    nbd_started = true;

    if (fd >= 0 && nbd_client_new(exp, fd, nbd_client_closed)) {

        nb_fds++;

    }

}

static void FUNC_0(void *VAR_0)

{

    int VAR_1 = (uintptr_t) VAR_0;

    struct sockaddr_in VAR_2;

    socklen_t addr_len = sizeof(VAR_2);



    int VAR_3 = accept(VAR_1, (struct sockaddr *)&VAR_2, &addr_len);

    nbd_started = true;

    if (VAR_3 >= 0 && nbd_client_new(exp, VAR_3, nbd_client_closed)) {

        nb_fds++;

    }

}

static void FUNC_0(void *VAR_0)
{ int VAR_1 = (uintptr_t) VAR_0; struct sockaddr_in VAR_2; socklen_t addr_len = sizeof(VAR_2); int VAR_3 = accept(VAR_1, (struct sockaddr *)&VAR_2, &addr_len); nbd_started = true; if (VAR_3 >= 0 && nbd_client_new(exp, VAR_3, nbd_client_closed)) { nb_fds++; } }