aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Kurz <groug@kaod.org>2021-01-18 15:22:58 +0100
committerGreg Kurz <groug@kaod.org>2021-01-21 17:49:45 +0100
commit2e53160fc62d4d59c76bf93c7a90bd739b8b8157 (patch)
treeaf272c84957062e12d36a3355266ea0d251a88bb
parentacef3f8b47060f05e13de5b615268c39b274aab0 (diff)
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>
-rw-r--r--hw/9pfs/9p.c4
-rw-r--r--hw/9pfs/9p.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/hw/9pfs/9p.c b/hw/9pfs/9p.c
index 6026b51a1c..37c3379b74 100644
--- a/hw/9pfs/9p.c
+++ b/hw/9pfs/9p.c
@@ -413,7 +413,7 @@ static V9fsFidState *clunk_fid(V9fsState *s, int32_t fid)
}
fidp = *fidpp;
*fidpp = fidp->next;
- fidp->clunked = 1;
+ fidp->clunked = true;
return fidp;
}
@@ -544,7 +544,7 @@ static void coroutine_fn virtfs_reset(V9fsPDU *pdu)
/* Clunk fid */
s->fid_list = fidp->next;
- fidp->clunked = 1;
+ fidp->clunked = true;
put_fid(pdu, fidp);
}
diff --git a/hw/9pfs/9p.h b/hw/9pfs/9p.h
index 32df81f360..93656323d1 100644
--- a/hw/9pfs/9p.h
+++ b/hw/9pfs/9p.h
@@ -279,7 +279,7 @@ struct V9fsFidState {
int open_flags;
uid_t uid;
int ref;
- int clunked;
+ bool clunked;
V9fsFidState *next;
V9fsFidState *rclm_lst;
};