From nobody Mon Oct 03 15:36:57 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Mh4h93yv6z4d1tQ; Mon, 3 Oct 2022 15:36:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Mh4h936PXz3Bmj; Mon, 3 Oct 2022 15:36:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664811417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fhPDgoBqs/fg6KLRa3L8Lw+YHwQFHx3gzyzAseyvj1A=; b=k22jVPDzXNtNck8ipi2FaMsmQ6zRsNOKeQAcjZ4E39Kfka9YPLND8rEqOQREfEOqJrymDe aHdJd/Q+G+SJYSeEaGP0MhRN9jGKHxNFZ84LPyfnav0adSBPWSmSquu36tHc7b71eNeQP9 KHEe8Kf5igB4E9N3/3IE0emWHkeht9TmjJegpREgj5M2GkWMsEqxlOHopb5FT0TyFO4Bvr vXKV7qXZwTs7o+NAhk2ieyqDUGyWC70g/Zh3rGrnFKE2XguUN/uXlrjybceL2Oa3EQW6Yp RLgSdPk2bZy2SCic+hlrLnUroM39Y0eOIr5shz/t/1aHD856pXxKm8Ukv7zf7A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Mh4h9273WzFn8; Mon, 3 Oct 2022 15:36:57 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 293Favgk085164; Mon, 3 Oct 2022 15:36:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 293Favom085163; Mon, 3 Oct 2022 15:36:57 GMT (envelope-from git) Date: Mon, 3 Oct 2022 15:36:57 GMT Message-Id: <202210031536.293Favom085163@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Hans Petter Selasky Subject: git: 8f0a3c9c3551 - main - cuse(3): Use bool type for boolean value instead of int type. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: hselasky X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 8f0a3c9c35517e61f4f64ce5b252202b8ddfa313 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1664811417; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=fhPDgoBqs/fg6KLRa3L8Lw+YHwQFHx3gzyzAseyvj1A=; b=kda1DChoLsViguaHmRjZdU/LDA+tTqOVbAxVDgC/FAUzq4u6it/TSJDmYbrYCNVknUGQS0 cMkViFZT4hrGQdCvIT89z3KzR1Na/5MbBebG2B3JCbXgvbd7AEWTmYzX4BwYTngpZoWl6Z Mk+/l5EJDibClWWndmc+z2d62pTQopJezgDUIyZqhPSePfOJDccC6WZG7PUKcaixkql0c1 pv3K8X33UeJQIOGCo+fLeV99nGX0kNNT9PuQN+mmMs5IUI0oGFouc9h0RbpUL94ZMiZWiL Tmdjf+MuD0g24VhBBpmd1Leq5dS0d12KPaMg3OdUKyfWjQCegG+UQF09x8kbTQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1664811417; a=rsa-sha256; cv=none; b=e0nAU3PoDZiaACtX4qSZusaREujs7k/9Sl3lxwEE6vAVMngfMC8X/zKRJ0+b1nMaYCLJis SvxDWMyEG1SrkjceSJpz7Id2CIpRJf/zZGL0FJasuaoRWR1b7lIGuktQeKw4VuGOu2xGgU T8/Lsw3xNNKFQVsSPqiaQFVHSW8mYh52UuT3ZvUzrnNMM2m+UonJnv0tq90OZAi/9ywt0t 9yPitTo8e8PdoRAkTpBNo5eBbgkgEWCPvAmvmZjzrE+6tA3LNzmy3twW7AVPKW6tJhZhDX XmD82vZ28sn/OGSolHUdOZsJKtm6fGPbaa5+stSCaCWI1L14q1xvqWU8woe8rg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=8f0a3c9c35517e61f4f64ce5b252202b8ddfa313 commit 8f0a3c9c35517e61f4f64ce5b252202b8ddfa313 Author: Hans Petter Selasky AuthorDate: 2022-10-03 15:26:43 +0000 Commit: Hans Petter Selasky CommitDate: 2022-10-03 15:35:14 +0000 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 --- 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 62b53d232ee2..a870df1b07dc 100644 --- a/sys/fs/cuse/cuse.c +++ b/sys/fs/cuse/cuse.c @@ -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,