Page MenuHomeFreeBSD

ctfmerge: remove function cast of strcompare() for qsort()
ClosedPublic

Authored by minsoochoo0122_proton.me on Feb 2 2024, 10:12 PM.
Referenced Files
Unknown Object (File)
Sun, Aug 3, 9:27 PM
Unknown Object (File)
Mon, Jul 28, 1:53 PM
Unknown Object (File)
Fri, Jul 25, 1:19 AM
Unknown Object (File)
Jul 7 2025, 1:55 PM
Unknown Object (File)
Jun 28 2025, 2:35 PM
Unknown Object (File)
Jun 27 2025, 4:54 PM
Unknown Object (File)
Jun 27 2025, 4:12 PM
Unknown Object (File)
Jun 27 2025, 9:28 AM

Details

Summary

qsort(tifiles, nifiles, sizeof (char *), strcompare); also works.

Test Plan

make buildworld

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 55770
Build 52659: arc lint + arc unit

Event Timeline

qsort(tifiles, nifiles, sizeof (char *), strcompare); also works.

If we can just get rid of the cast, and it looks like we can, then let's do that.

minsoochoo0122_proton.me retitled this revision from ctfmerge: specify parameter types of strcompare() for qsort() to ctfmerge: remove function cast of strcompare() for qsort().Feb 3 2024, 2:55 AM
This revision is now accepted and ready to land.Feb 3 2024, 3:09 AM