Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/traceroute6 traceroute6: Remove __packed
details: https://anonhg.NetBSD.org/src/rev/0eb60eb2f17a
branches: trunk
changeset: 950867:0eb60eb2f17a
user: roy <roy%NetBSD.org@localhost>
date: Wed Feb 03 06:42:50 2021 +0000
description:
traceroute6: Remove __packed
diffstat:
usr.sbin/traceroute6/Makefile | 4 +---
usr.sbin/traceroute6/traceroute6.c | 6 +++---
2 files changed, 4 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r 547e35bc4dd2 -r 0eb60eb2f17a usr.sbin/traceroute6/Makefile
--- a/usr.sbin/traceroute6/Makefile Wed Feb 03 05:51:40 2021 +0000
+++ b/usr.sbin/traceroute6/Makefile Wed Feb 03 06:42:50 2021 +0000
@@ -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 @@
.PATH: ${TRACEROUTE}
-CWARNFLAGS.gcc+= ${GCC_NO_ADDR_OF_PACKED_MEMBER}
-
.include <bsd.prog.mk>
diff -r 547e35bc4dd2 -r 0eb60eb2f17a usr.sbin/traceroute6/traceroute6.c
--- a/usr.sbin/traceroute6/traceroute6.c Wed Feb 03 05:51:40 2021 +0000
+++ b/usr.sbin/traceroute6/traceroute6.c Wed Feb 03 06:42:50 2021 +0000
@@ -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 @@
#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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index