From nobody Thu Oct 09 17:52:28 2025 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 4cjHWw6Vysz6BrRv; Thu, 09 Oct 2025 17:52:28 +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 "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4cjHWw4msBz3G4n; Thu, 09 Oct 2025 17:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760032348; 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=BlUBAiVjy58NcFv87of8ExJjx8BZt2FNQxAbH1IhyVw=; b=OFGh/VKzRyfJSq1HgahZNHL8d2PuCf79I9G0ROv91/e/zKKp3pu5q78O56Wmoe8O+lUog0 RaZPDNjCIOVmtvlipZRYEHnqt5RzPwa9Lpk2qqlHdkJuVlW5qrzrdv/wwzKOI50pGbs4/y 7b9LvlLZ7hSqshSYH6ihlvUzlhMwEHJg16MiRcqP3vbb4K6gCqWdERh2EP7Hw9LZIdOJNq biVyfDwE+XVznP/S7eL4IENpCZZaUOBSv7yJQDZojcR1Gf0OZYRecyMluipiV6zi755eqS S6f3dQ/MZ+ZIj6q8vxIakxo/NCJ9y+d+iGYUfyuxpNNM5MxiyegIb6IG7vIYww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1760032348; 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=BlUBAiVjy58NcFv87of8ExJjx8BZt2FNQxAbH1IhyVw=; b=U9AmPiW4d2U6xMlNKQqS1PFK0pQFGEm981xGZWXFtW1MNGKqaqjcyDNIo30EkpxFMmXdI1 gWVGZlCG7w9bD6rAMhrbSjWqnYSZpcNnh8y5suSFsYcgKDiCvCp+b7Nwxhv18W1jBYKRlm lURoMK+eekShUlhVgqO0YY9TW87ndAmF84o/SHqi7mZWI6BWRy4bOWxaC5XmeEle+ZS5/6 5b6cB0XMOg0Lv/Ujaq4UX+vLRdxy6s5FUri7Jb6bvUqPVBDKro1nocoM92f0a6MlKl43vY 3L3wBoWwtS2zaHKUNJv+F/wbC1QxXEVnkVbnFYVDDNL8s65j6B7tH9aO0BABvw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1760032348; a=rsa-sha256; cv=none; b=Ibf8VVZzghul9wxmJDgjfNhghoMumy+AbyeK4xjM4cxjmfDIzwXRGJ/GXAwSL9TWBnqlaC ROWXOz5JLHlaQ4hXq06UhXc/PhHpqfjsUfkkFvT4OquZFl6fX+ZVyMYjv1uv1zXjlZFxf2 gFSV0g1Ac5s4Y/dmFSF5KXoFTvQw7hmW3rjJAPKd1B6qAlcF0yqXVGHzjEyL7vtXzimwTA jumWlow0Ln68CLUu8Px9LQ4izlH1JpD9tX2K4EV9ojmmhkHtHJj3F7fr+/KU0Fz0LREYxv UJcizmWsCVWIFBIvV5/fnpR1yk3XRVcP26xqNK/MP/Gl0BA/D+odqTk4Io14FQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4cjHWw2b1PzC9d; Thu, 09 Oct 2025 17:52:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 599HqSiM074819; Thu, 9 Oct 2025 17:52:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 599HqSGX074814; Thu, 9 Oct 2025 17:52:28 GMT (envelope-from git) Date: Thu, 9 Oct 2025 17:52:28 GMT Message-Id: <202510091752.599HqSGX074814@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Ed Maste Subject: git: 349da4dbff72 - main - libcasper: explicit cast in cap_fileargs header 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: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: emaste X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 349da4dbff722a58affd13d84729b1d399b41fb3 Auto-Submitted: auto-generated The branch main has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=349da4dbff722a58affd13d84729b1d399b41fb3 commit 349da4dbff722a58affd13d84729b1d399b41fb3 Author: Quentin Thébault AuthorDate: 2025-09-26 02:04:07 +0000 Commit: Ed Maste CommitDate: 2025-10-09 17:52:14 +0000 libcasper: explicit cast in cap_fileargs header The implicit cast is incompatible with standard compiler options in a C++ project, making the library difficult to use. Signed-off-by: Quentin Thébault Sponsored by: Defenso MFC after: 3 days Discussed with: kevans Reviewed by: emaste, vexeduxr Pull request: https://github.com/freebsd/freebsd-src/pull/1857 --- lib/libcasper/services/cap_fileargs/cap_fileargs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libcasper/services/cap_fileargs/cap_fileargs.h b/lib/libcasper/services/cap_fileargs/cap_fileargs.h index 8207671d9753..d3a0150044d7 100644 --- a/lib/libcasper/services/cap_fileargs/cap_fileargs.h +++ b/lib/libcasper/services/cap_fileargs/cap_fileargs.h @@ -75,7 +75,7 @@ fileargs_init(int argc __unused, char *argv[] __unused, int flags, mode_t mode, cap_rights_t *rightsp __unused, int operations __unused) { fileargs_t *fa; - fa = malloc(sizeof(*fa)); + fa = (fileargs_t *)malloc(sizeof(*fa)); if (fa != NULL) { fa->fa_flags = flags; fa->fa_mode = mode;