cuse(3): Use bool type for boolean value instead of int type.

No functional change intended.

Reviewed by:	imp @
Differential Revision:	https://reviews.freebsd.org/D36633
MFC after:	1 week
Sponsored by:	NVIDIA Networking
This commit is contained in:
Hans Petter Selasky 2022-10-03 17:26:43 +02:00
parent 8a299958c1
commit 8f0a3c9c35

View File

@ -822,7 +822,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;
@ -850,7 +850,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,
@ -929,7 +929,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;
@ -945,7 +945,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,