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)
Mon, Oct 13, 2:51 PM
Unknown Object (File)
Sat, Oct 11, 12:27 PM
Unknown Object (File)
Thu, Sep 25, 6:36 AM
Unknown Object (File)
Sat, Sep 20, 9:53 PM
Unknown Object (File)
Sep 16 2025, 10:11 PM
Unknown Object (File)
Sep 16 2025, 8:40 AM
Unknown Object (File)
Sep 15 2025, 10:23 PM
Unknown Object (File)
Sep 15 2025, 8:00 PM

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 55769
Build 52658: 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