traceroute6: Remove __packed
This commit is contained in:
parent
1ca39e8727
commit
14360cba7a
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.11 2020/09/06 07:20:33 mrg Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2021/02/03 06:42:50 roy Exp $
|
||||
|
||||
USE_FORT?= yes # network client
|
||||
|
||||
|
@ -20,6 +20,4 @@ CPPFLAGS+=-I${TRACEROUTE}
|
|||
|
||||
.PATH: ${TRACEROUTE}
|
||||
|
||||
CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: traceroute6.c,v 1.51 2018/04/23 18:59:03 maxv Exp $ */
|
||||
/* $NetBSD: traceroute6.c,v 1.52 2021/02/03 06:42:50 roy Exp $ */
|
||||
/* $KAME: traceroute6.c,v 1.67 2004/01/25 03:24:39 itojun Exp $ */
|
||||
|
||||
/*
|
||||
|
@ -75,7 +75,7 @@ static char sccsid[] = "@(#)traceroute.c 8.1 (Berkeley) 6/6/93";
|
|||
#else
|
||||
#include <sys/cdefs.h>
|
||||
#ifndef lint
|
||||
__RCSID("$NetBSD: traceroute6.c,v 1.51 2018/04/23 18:59:03 maxv Exp $");
|
||||
__RCSID("$NetBSD: traceroute6.c,v 1.52 2021/02/03 06:42:50 roy Exp $");
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -306,7 +306,7 @@ struct opacket {
|
|||
u_char hops; /* hop limit of the packet */
|
||||
u_char pad[2];
|
||||
struct tv32 tv; /* time packet left */
|
||||
} __packed;
|
||||
};
|
||||
|
||||
static u_char packet[512]; /* last inbound (icmp) packet */
|
||||
static struct opacket *outpacket; /* last output (udp) packet */
|
||||
|
|
Loading…
Reference in New Issue