Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F160010506
D54290.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
641 B
Referenced Files
None
Subscribers
None
D54290.id.diff
View Options
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c
--- a/contrib/telnet/telnet/commands.c
+++ b/contrib/telnet/telnet/commands.c
@@ -2848,7 +2848,7 @@
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 @@
lsrp = *cpp;
ep = lsrp + *lenp;
} else {
- *cpp = lsrp = (char *)ALIGN(buf);
+ *cpp = lsrp = buf;
ep = lsrp + 1024;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Jun 21, 1:03 PM (8 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34149699
Default Alt Text
D54290.id.diff (641 B)
Attached To
Mode
D54290: telnet: Remove usage of ALIGN
Attached
Detach File
Event Timeline
Log In to Comment