int qemu_acl_remove(qemu_acl *acl,

                    const char *match)

{

    qemu_acl_entry *entry;

    int i = 0;



    TAILQ_FOREACH(entry, &acl->entries, next) {

        i++;

        if (strcmp(entry->match, match) == 0) {

            TAILQ_REMOVE(&acl->entries, entry, next);

            return i;

        }

    }

    return -1;

}

int qemu_acl_remove(qemu_acl *acl,

                    const char *match)

{

    qemu_acl_entry *entry;

    int i = 0;



    TAILQ_FOREACH(entry, &acl->entries, next) {

        i++;

        if (strcmp(entry->match, match) == 0) {

            TAILQ_REMOVE(&acl->entries, entry, next);

            return i;

        }

    }

    return -1;

}

int FUNC_0(qemu_acl *VAR_0,

                    const char *VAR_1)

{

    qemu_acl_entry *entry;

    int VAR_2 = 0;



    TAILQ_FOREACH(entry, &VAR_0->entries, next) {

        VAR_2++;

        if (strcmp(entry->VAR_1, VAR_1) == 0) {

            TAILQ_REMOVE(&VAR_0->entries, entry, next);

            return VAR_2;

        }

    }

    return -1;

}

int FUNC_0(qemu_acl *VAR_0,
const char *VAR_1)
{ qemu_acl_entry *entry; int VAR_2 = 0; TAILQ_FOREACH(entry, &VAR_0->entries, next) { VAR_2++; if (strcmp(entry->VAR_1, VAR_1) == 0) { TAILQ_REMOVE(&VAR_0->entries, entry, next); return VAR_2; } } return -1; }