diff options
| author | Jessica Clarke <jrtc27@FreeBSD.org> | 2025-09-09 13:27:02 +0000 |
|---|---|---|
| committer | Jessica Clarke <jrtc27@FreeBSD.org> | 2025-09-09 13:27:02 +0000 |
| commit | 26d56dec1e0e3bab571a00fcb9c39d3269fbcf97 (patch) | |
| tree | 1b244470f6822586f2e553f55f95f7ac99afbd94 | |
| parent | e1c5e043961ab3a5429a0c6e727265dfa819cf00 (diff) | |
certctl: Use __DECONST rather than reimplementing
| -rw-r--r-- | usr.sbin/certctl/certctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |
