telnet: Remove usage of ALIGN

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

Reported by:	Jenkins
Reviewed by:	brooks
Fixes:		80203a27e9 ("Add sys/_align.h replacing machine/_align.h")
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D54290
This commit is contained in:
Mark Johnston
2025-12-22 15:18:52 +00:00
parent da8ab13249
commit 3a4275a5f1
+2 -2
View File
@@ -2848,7 +2848,7 @@ cmdrc(char *m1, char *m2)
static int
sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int *protop, int *optp)
{
static char buf[1024 + ALIGNBYTES]; /*XXX*/
static char buf[1024] __aligned(sizeof(void *)); /*XXX*/
unsigned char *cp, *cp2, *lsrp, *ep;
struct sockaddr_in *_sin;
#ifdef INET6
@@ -2888,7 +2888,7 @@ sourceroute(struct addrinfo *ai, char *arg, unsigned char **cpp, int *lenp, int
lsrp = *cpp;
ep = lsrp + *lenp;
} else {
*cpp = lsrp = (char *)ALIGN(buf);
*cpp = lsrp = buf;
ep = lsrp + 1024;
}