From nobody Wed Oct 12 15:54:12 2022 X-Original-To: dev-commits-src-all@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 4Mncdw6Lyxz4fdF7; Wed, 12 Oct 2022 15:54:12 +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 4Mncdw5nzbz3Gg0; Wed, 12 Oct 2022 15:54:12 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590052; 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=XEQFPZE7EioAxH/ryUDQgt3ydie7RJyQ59RyuXPSsIk=; b=vQI5UUu+7TI2jLNV1sTTIKGEtiDbPVRSf2t0aHOMjQfzHMB4oFsJu7YgYTKuyDU2iBHQ2I Y1zG4bc7Hr5dOHSId+if/yW2Pz3tUT+sXh/QAv5cJh8ccIsw6aabozuw/c1IN/pm7n1eeJ YG2BAk5fj6mXa+rUIPvLl5oDsnx8DfXf92QrSxzzC5DEHHIgV0SnSYlnwCeMEcA0cEQG0u tVZpX0UrgDYcbFWh/TNVQw96XH7DsdLKZ6p8L+OFNwyL0P9of9nL3nxtyGl4LPaptVVADp Lz5QxTY3/NgC/BIaAnTn0eGMHgcaGNb2uNTr9CwWTE5ql3+QJCBMsbr976RX0g== 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 4Mncdw4ncHz1MM8; Wed, 12 Oct 2022 15:54:12 +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 29CFsCgn043758; Wed, 12 Oct 2022 15:54:12 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 29CFsCe8043757; Wed, 12 Oct 2022 15:54:12 GMT (envelope-from git) Date: Wed, 12 Oct 2022 15:54:12 GMT Message-Id: <202210121554.29CFsCe8043757@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Hans Petter Selasky Subject: git: 8016b0fefdb6 - stable/13 - cuse(3): Use bool type for boolean value instead of int type. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@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/stable/13 X-Git-Reftype: branch X-Git-Commit: 8016b0fefdb6b414e85975ccdc735254fdd03f06 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1665590052; 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=XEQFPZE7EioAxH/ryUDQgt3ydie7RJyQ59RyuXPSsIk=; b=XocJDMUgWk5P76SM3S3IGbOwj0pCI+BakMRxxiXPaNrZTX4tlWK4dM6AyWCsOTvvaKlg5q 6f5cxgJWYJCSzTWZk5h9jG8cmM1RpsTGgdsWtIB/5hjulhUVOADzPs9we7mkseNTehlALI Ki4/rTJf5enL/67uPksqSmDUMO4QbwJn61NsjvZDKvNNYiK+02R4YYbqNykkup9EzG5jfR 5F9BCPYicJ0gaxtziwe3+kedKoB6oAEEbbfqZ57xv/KjgKVsDY3ap8+8up8/Uff/mALwD0 X91DbyuSWAzoxvfX9g+OhssNLIgyotgeWbEJBearBhBzUw7QrpXou1iCo4P3Og== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1665590052; a=rsa-sha256; cv=none; b=VNvqljsg98oZ0XYJ3ovcrPuMQVzyqE+7MCxy7uZpqBbu4+yiYGKlYwzP6yjBRrBxTML7zy T8yTXOhhdTJCwb64l8HTrRene2WeGURKQbmNPxAzaB+9URzrJMg9D3dIZphsB3yy32wwo7 5n398Zp38hrIBZUpRQBE+eFL6q9kXS4iNSuMwuHCYttAioI6/hySQPsUsHUI4Dhn6BuM5Q W1hYoWElKxO7Jh1kC7Za+q+6R+vboi/wkUuSLyQnPkHwNrOFraB3HteR+8ENx/CYjVQVm3 qr5eLv1n8aT318cqE6ClRofbnLgsg8IRItqemynF/fQomNTGsfzlQtOUA60vxA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by hselasky: URL: https://cgit.FreeBSD.org/src/commit/?id=8016b0fefdb6b414e85975ccdc735254fdd03f06 commit 8016b0fefdb6b414e85975ccdc735254fdd03f06 Author: Hans Petter Selasky AuthorDate: 2022-10-03 15:26:43 +0000 Commit: Hans Petter Selasky 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,