Page MenuHomeFreeBSD

rge: use C style comments instead of C++
ClosedPublic

Authored by chris.longros_gmail.com on Mar 8 2026, 3:35 PM.
Referenced Files
F151532305: D55743.diff
Thu, Apr 9, 1:34 AM
Unknown Object (File)
Mon, Apr 6, 7:54 PM
Unknown Object (File)
Sun, Apr 5, 8:48 AM
Unknown Object (File)
Sat, Apr 4, 2:06 PM
Unknown Object (File)
Sat, Apr 4, 10:41 AM
Unknown Object (File)
Thu, Apr 2, 3:28 PM
Unknown Object (File)
Thu, Mar 26, 1:22 AM
Unknown Object (File)
Mon, Mar 23, 8:36 AM
Subscribers

Details

Summary

FreeBSD style(9) mandates C style comments. The initial import from
OpenBSD left several C++ style // comments in if_rge.c and if_rgevar.h.
Replace them with proper /* */ comments.

Also fix a malformed comment that mixed // with a closing */.

Signed-off-by: Christos Longros <chris.longros@gmail.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 71261
Build 68144: arc lint + arc unit

Event Timeline

Lemme see which I can delete and which I need to keep and use.

I /think/ the commented out fields in if_rgevar.h can just be deleted. Would you mind just deleting those fields and resubmitting the diff?

Thanks!

I deleted the 4 commented-out struct members from if_rgevar.h (if_rxring, pci_intr_handle_t, pci_chipset_tag_t, pcitag_t).

This revision is now accepted and ready to land.Sun, Mar 15, 4:13 PM
This revision was automatically updated to reflect the committed changes.