summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2004-09-28 15:48:52 +0000
committerclaudio <claudio@openbsd.org>2004-09-28 15:48:52 +0000
commit11660996b19da4207c1d11a1b5cc36024e3a4cdb (patch)
tree01de3921cee0c9b79527baf9b7ec6d5e2dcc03e3
parentsync (diff)
downloadwireguard-openbsd-11660996b19da4207c1d11a1b5cc36024e3a4cdb.tar.xz
wireguard-openbsd-11660996b19da4207c1d11a1b5cc36024e3a4cdb.zip
gcc-ism. We don't want it, we don't need it.
OK henning@ noticed by deraadt@
-rw-r--r--usr.sbin/bgpd/rde.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index e34efbe4171..ed082de364a 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.56 2004/09/28 12:09:31 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.57 2004/09/28 15:48:52 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -69,7 +69,7 @@ struct rde_peer {
#define AS_SET 1
#define AS_SEQUENCE 2
-#define ASPATH_HEADER_SIZE sizeof(struct aspath)
+#define ASPATH_HEADER_SIZE (sizeof(struct aspath) - sizeof(u_char))
LIST_HEAD(aspath_list, aspath);
@@ -78,7 +78,7 @@ struct aspath {
int refcnt; /* reference count */
u_int16_t len; /* total length of aspath in octets */
u_int16_t ascnt; /* number of AS hops in data */
- u_char data[0]; /* placeholder for actual data */
+ u_char data[1]; /* placeholder for actual data */
};
enum attrtypes {