git: 8016b0fefdb6 - stable/13 - cuse(3): Use bool type for boolean value instead of int type.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 12 Oct 2022 15:54:12 UTC
The branch stable/13 has been updated by hselasky:
URL: https://cgit.FreeBSD.org/src/commit/?id=8016b0fefdb6b414e85975ccdc735254fdd03f06
commit 8016b0fefdb6b414e85975ccdc735254fdd03f06
Author: Hans Petter Selasky <hselasky@FreeBSD.org>
AuthorDate: 2022-10-03 15:26:43 +0000
Commit: Hans Petter Selasky <hselasky@FreeBSD.org>
CommitDate: 2022-10-12 15:53:21 +0000
cuse(3): Use bool type for boolean value instead of int type.
No functional change intended.
Reviewed by: imp @
Sponsored by: NVIDIA Networking
Differential Revision: https://reviews.freebsd.org/D36633
(cherry picked from commit 8f0a3c9c35517e61f4f64ce5b252202b8ddfa313)
---
sys/fs/cuse/cuse.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sys/fs/cuse/cuse.c b/sys/fs/cuse/cuse.c
index 8922ad0e7d60..41f8bdbe2bfe 100644
--- a/sys/fs/cuse/cuse.c
+++ b/sys/fs/cuse/cuse.c
@@ -838,7 +838,7 @@ cuse_server_write(struct cdev *dev, struct uio *uio, int ioflag)
static int
cuse_server_ioctl_copy_locked(struct cuse_server *pcs,
struct cuse_client_command *pccmd,
- struct cuse_data_chunk *pchk, int isread)
+ struct cuse_data_chunk *pchk, bool isread)
{
struct proc *p_proc;
uint32_t offset;
@@ -866,7 +866,7 @@ cuse_server_ioctl_copy_locked(struct cuse_server *pcs,
cuse_server_unlock(pcs);
- if (isread == 0) {
+ if (isread == false) {
error = copyin(
(void *)pchk->local_ptr,
pccmd->client->ioctl_buffer + offset,
@@ -945,7 +945,7 @@ cuse_proc2proc_copy(struct proc *proc_s, vm_offset_t data_s,
static int
cuse_server_data_copy_locked(struct cuse_server *pcs,
struct cuse_client_command *pccmd,
- struct cuse_data_chunk *pchk, int isread)
+ struct cuse_data_chunk *pchk, bool isread)
{
struct proc *p_proc;
int error;
@@ -961,7 +961,7 @@ cuse_server_data_copy_locked(struct cuse_server *pcs,
cuse_server_unlock(pcs);
- if (isread == 0) {
+ if (isread == false) {
error = cuse_proc2proc_copy(
curthread->td_proc, pchk->local_ptr,
p_proc, pchk->peer_ptr,