Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jul 2024 00:55:33 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: dc1f4c3d9aab - stable/14 - libdtrace: Use designated initializers for modules ops tables
Message-ID:  <202407220055.46M0tXj3007150@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by markj:

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

commit dc1f4c3d9aab6524b06630e2168a1ca6525674bf
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2024-07-10 21:17:38 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-07-22 00:55:27 +0000

    libdtrace: Use designated initializers for modules ops tables
    
    No functional change intended.
    
    MFC after:      1 week
    Sponsored by:   Innovate UK
    
    (cherry picked from commit f6372351da07ae101d5a22a2bb2bdb2753da2b40)
---
 .../contrib/opensolaris/lib/libdtrace/common/dt_module.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
index 281c787de533..6fb9b0f84769 100644
--- a/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
+++ b/cddl/contrib/opensolaris/lib/libdtrace/common/dt_module.c
@@ -452,17 +452,17 @@ dt_module_symaddr64(dt_module_t *dmp, GElf_Addr addr,
 }
 
 static const dt_modops_t dt_modops_32 = {
-	dt_module_syminit32,
-	dt_module_symsort32,
-	dt_module_symname32,
-	dt_module_symaddr32
+	.do_syminit = dt_module_syminit32,
+	.do_symsort = dt_module_symsort32,
+	.do_symname = dt_module_symname32,
+	.do_symaddr = dt_module_symaddr32
 };
 
 static const dt_modops_t dt_modops_64 = {
-	dt_module_syminit64,
-	dt_module_symsort64,
-	dt_module_symname64,
-	dt_module_symaddr64
+	.do_syminit = dt_module_syminit64,
+	.do_symsort = dt_module_symsort64,
+	.do_symname = dt_module_symname64,
+	.do_symaddr = dt_module_symaddr64
 };
 
 dt_module_t *



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