Page MenuHomeFreeBSD

link_addr_test: use <cstddef>, not <sys/stddef.h>
ClosedPublic

Authored by ivy on May 6 2025, 8:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 25, 9:30 PM
Unknown Object (File)
Mon, Sep 22, 2:42 PM
Unknown Object (File)
Fri, Sep 19, 11:52 PM
Unknown Object (File)
Wed, Sep 17, 9:55 AM
Unknown Object (File)
Wed, Sep 17, 4:14 AM
Unknown Object (File)
Tue, Sep 16, 10:30 PM
Unknown Object (File)
Fri, Sep 12, 4:53 PM
Unknown Object (File)
Wed, Sep 10, 6:39 AM
Subscribers

Details

Summary

<cstddef> is the correct header; this fixes the GCC build.

Fixes: 757e973fb211 ("libc tests: add tests for link_addr(3) and link_ntoa(3)")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63933
Build 60817: arc lint + arc unit

Event Timeline

ivy requested review of this revision.May 6 2025, 8:34 AM
lib/libc/tests/net/link_addr_test.cc
23
33

any reason not to sort these?

sort the headers

i've separated the C headers from the C++ headers and sorted them separately; i
don't know if we have any existing style guidelines for that but it's how i
usually prefer to do it, otherwise you end up with a bunch of C headers
randomly sorted under 'c'.

I would have preferred not to split them, but no strong opinion either way.

This revision is now accepted and ready to land.May 6 2025, 2:35 PM