static void do_eject(int argc, const char **argv)

{

    BlockDriverState *bs;

    const char **parg;

    int force;



    parg = argv + 1;

    if (!*parg) {

    fail:

        help_cmd(argv[0]);

        return;

    }

    force = 0;

    if (!strcmp(*parg, "-f")) {

        force = 1;

        parg++;

    }

    if (!*parg)

        goto fail;

    bs = bdrv_find(*parg);

    if (!bs) {

        term_printf("device not found\n");

        return;

    }

    eject_device(bs, force);

}

static void do_eject(int argc, const char **argv)

{

    BlockDriverState *bs;

    const char **parg;

    int force;



    parg = argv + 1;

    if (!*parg) {

    fail:

        help_cmd(argv[0]);

        return;

    }

    force = 0;

    if (!strcmp(*parg, "-f")) {

        force = 1;

        parg++;

    }

    if (!*parg)

        goto fail;

    bs = bdrv_find(*parg);

    if (!bs) {

        term_printf("device not found\n");

        return;

    }

    eject_device(bs, force);

}

static void FUNC_0(int VAR_0, const char **VAR_1)

{

    BlockDriverState *bs;

    const char **VAR_2;

    int VAR_3;



    VAR_2 = VAR_1 + 1;

    if (!*VAR_2) {

    fail:

        help_cmd(VAR_1[0]);

        return;

    }

    VAR_3 = 0;

    if (!strcmp(*VAR_2, "-f")) {

        VAR_3 = 1;

        VAR_2++;

    }

    if (!*VAR_2)

        goto fail;

    bs = bdrv_find(*VAR_2);

    if (!bs) {

        term_printf("device not found\n");

        return;

    }

    eject_device(bs, VAR_3);

}

static void FUNC_0(int VAR_0, const char **VAR_1)
{ BlockDriverState *bs; const char **VAR_2; int VAR_3; VAR_2 = VAR_1 + 1; if (!*VAR_2) { fail:
help_cmd(VAR_1[0]); return; } VAR_3 = 0; if (!strcmp(*VAR_2, "-f")) { VAR_3 = 1; VAR_2++; } if (!*VAR_2)
goto fail; bs = bdrv_find(*VAR_2); if (!bs) { term_printf("device not found\n"); return; } eject_device(bs, VAR_3); }