summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd/rde.h
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2004-09-28 15:48:53 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2004-09-28 15:48:53 +0000
commit718f66c5e30969401ff0175e742aa538f4943ef9 (patch)
tree6c5bbc008eb9e73e3312f033de31eb19638aab44 /usr.sbin/bgpd/rde.h
parent40e5637a052b366a3ca732a7ff9ecc9feddf6ba7 (diff)
gcc-ism. We don't want it, we don't need it.
OK henning@ noticed by deraadt@
Diffstat (limited to 'usr.sbin/bgpd/rde.h')
-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 {