Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Jul 2023 17:52:11 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: 1e635e87e3e2 - main - ldconfig: Use __PATH_ELF_HINTS("32") over _PATH_ELF32_HINTS
Message-ID:  <202307091752.369HqBwf098848@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=1e635e87e3e2e1b5cdf2cbfe9a2a2900c60810a6

commit 1e635e87e3e2e1b5cdf2cbfe9a2a2900c60810a6
Author:     Jessica Clarke <jrtc27@FreeBSD.org>
AuthorDate: 2023-07-09 17:50:15 +0000
Commit:     Jessica Clarke <jrtc27@FreeBSD.org>
CommitDate: 2023-07-09 17:50:15 +0000

    ldconfig: Use __PATH_ELF_HINTS("32") over _PATH_ELF32_HINTS
    
    This will allow the latter to be removed, reducing the boilerplate
    needed for a new libcompat.
    
    Reviewed by:    kib, brooks, jhb
    Differential Revision:  https://reviews.freebsd.org/D40933
---
 sbin/ldconfig/ldconfig.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sbin/ldconfig/ldconfig.c b/sbin/ldconfig/ldconfig.c
index 47e26ad8367c..2f5cdbd6505e 100644
--- a/sbin/ldconfig/ldconfig.c
+++ b/sbin/ldconfig/ldconfig.c
@@ -77,7 +77,7 @@ main(int argc, char **argv)
 	}
 
 	if (is_32)
-		hints_file = _PATH_ELF32_HINTS;
+		hints_file = __PATH_ELF_HINTS("32");
 	else
 		hints_file = _PATH_ELF_HINTS;
 	while((c = getopt(argc, argv, "Rf:imrsv")) != -1) {



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