git: f73124b077d8 - main - ctfmerge: Remove function cast of strcompare() for qsort()

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 19:10:10 UTC
The branch main has been updated by markj:

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

commit f73124b077d867990cbcb4d903b48be2ca55e4ca
Author:     Minsoo Choo <minsoochoo0122@proton.me>
AuthorDate: 2024-02-03 19:06:49 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2024-02-03 19:09:52 +0000

    ctfmerge: Remove function cast of strcompare() for qsort()
    
    Reviewed by:    emaste
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D43715
---
 cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c b/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c
index 161927cf0663..27aa4d01b03d 100644
--- a/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c
+++ b/cddl/contrib/opensolaris/tools/ctf/cvt/ctfmerge.c
@@ -886,7 +886,7 @@ main(int argc, char **argv)
 
 	for (i = 0; i < nifiles; i++)
 		tifiles[i] = argv[optind + i];
-	qsort(tifiles, nifiles, sizeof (char *), (int (*)())strcompare);
+	qsort(tifiles, nifiles, sizeof (char *), strcompare);
 
 	ifiles[0] = tifiles[0];
 	for (idx = 0, tidx = 1; tidx < nifiles; tidx++) {