git: ac5b3cba91f9 - stable/14 - ctfmerge: Remove function cast of strcompare() for qsort()
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 11 Feb 2024 15:15:35 UTC
The branch stable/14 has been updated by markj: URL: https://cgit.FreeBSD.org/src/commit/?id=ac5b3cba91f94b273286af19abeab5440ffccef0 commit ac5b3cba91f94b273286af19abeab5440ffccef0 Author: Minsoo Choo <minsoochoo0122@proton.me> AuthorDate: 2024-02-03 19:06:49 +0000 Commit: Mark Johnston <markj@FreeBSD.org> CommitDate: 2024-02-11 15:14:36 +0000 ctfmerge: Remove function cast of strcompare() for qsort() Reviewed by: emaste MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D43715 (cherry picked from commit f73124b077d867990cbcb4d903b48be2ca55e4ca) --- 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++) {