mirror of https://github.com/xemu-project/xemu.git
9pfs: Convert V9fsFidState::clunked to bool
This can only be 0 or 1. Reviewed-by: Christian Schoenebeck <qemu_oss@crudebyte.com> Message-Id: <20210118142300.801516-2-groug@kaod.org> Signed-off-by: Greg Kurz <groug@kaod.org>
This commit is contained in:
parent
acef3f8b47
commit
2e53160fc6
|
@ -413,7 +413,7 @@ static V9fsFidState *clunk_fid(V9fsState *s, int32_t fid)
|
||||||
}
|
}
|
||||||
fidp = *fidpp;
|
fidp = *fidpp;
|
||||||
*fidpp = fidp->next;
|
*fidpp = fidp->next;
|
||||||
fidp->clunked = 1;
|
fidp->clunked = true;
|
||||||
return fidp;
|
return fidp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -544,7 +544,7 @@ static void coroutine_fn virtfs_reset(V9fsPDU *pdu)
|
||||||
|
|
||||||
/* Clunk fid */
|
/* Clunk fid */
|
||||||
s->fid_list = fidp->next;
|
s->fid_list = fidp->next;
|
||||||
fidp->clunked = 1;
|
fidp->clunked = true;
|
||||||
|
|
||||||
put_fid(pdu, fidp);
|
put_fid(pdu, fidp);
|
||||||
}
|
}
|
||||||
|
|
|
@ -279,7 +279,7 @@ struct V9fsFidState {
|
||||||
int open_flags;
|
int open_flags;
|
||||||
uid_t uid;
|
uid_t uid;
|
||||||
int ref;
|
int ref;
|
||||||
int clunked;
|
bool clunked;
|
||||||
V9fsFidState *next;
|
V9fsFidState *next;
|
||||||
V9fsFidState *rclm_lst;
|
V9fsFidState *rclm_lst;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue