Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Sep 2025 13:30:32 GMT
From:      Jessica Clarke <jrtc27@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 26d56dec1e0e - main - certctl: Use __DECONST rather than reimplementing
Message-ID:  <202509091330.589DUWXr067898@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jrtc27:

URL: https://cgit.FreeBSD.org/src/commit/?id=26d56dec1e0e3bab571a00fcb9c39d3269fbcf97

commit 26d56dec1e0e3bab571a00fcb9c39d3269fbcf97
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2025-09-09 13:27:02 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2025-09-09 13:27:02 +0000

    certctl: Use __DECONST rather than reimplementing
---
 usr.sbin/certctl/certctl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.sbin/certctl/certctl.c b/usr.sbin/certctl/certctl.c
index 3601f6929fc4..15143c3b0582 100644
--- a/usr.sbin/certctl/certctl.c
+++ b/usr.sbin/certctl/certctl.c
@@ -379,7 +379,7 @@ static int
 read_certs(const char *path, struct cert_tree *tree, struct cert_tree *exclude)
 {
 	struct stat sb;
-	char *paths[] = { (char *)(uintptr_t)path, NULL };
+	char *paths[] = { __DECONST(char *, path), NULL };
 	FTS *fts;
 	FTSENT *ent;
 	int fts_options = FTS_LOGICAL | FTS_NOCHDIR;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202509091330.589DUWXr067898>