Page MenuHomeFreeBSD

telnet: Remove usage of ALIGN
ClosedPublic

Authored by markj on Dec 18 2025, 5:50 PM.
Tags
None
Referenced Files
F162625951: D54290.diff
Wed, Jul 15, 5:42 AM
F162625950: D54290.diff
Wed, Jul 15, 5:42 AM
Unknown Object (File)
Thu, Jul 9, 3:07 AM
Unknown Object (File)
Wed, Jul 8, 7:58 PM
Unknown Object (File)
Wed, Jul 8, 5:27 AM
Unknown Object (File)
Mon, Jul 6, 1:03 PM
Unknown Object (File)
Sat, Jul 4, 6:15 AM
Unknown Object (File)
Sat, Jul 4, 6:12 AM
Subscribers

Details

Summary

gcc doesn't like ALIGN() being applied to an array type. Just use
__aligned instead.

Fixes: 80203a27e964 ("Add sys/_align.h replacing machine/_align.h")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj requested review of this revision.Dec 18 2025, 5:50 PM
brooks added inline comments.
contrib/telnet/telnet/commands.c
2851

At least I think the XXX is probably referring to the evil use of ALIGN?

This revision is now accepted and ready to land.Dec 22 2025, 10:10 AM
contrib/telnet/telnet/commands.c
2851

I had thought so too, but it predates it, see commit c847fdb1f93a7.

This revision was automatically updated to reflect the committed changes.