summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorclaudio <claudio@openbsd.org>2005-12-30 16:40:15 +0000
committerclaudio <claudio@openbsd.org>2005-12-30 16:40:15 +0000
commitaadef8a2e8b28ce2cfbe3859e78ceb3fb1ac4b20 (patch)
tree0b992b9685f6c4f453872dc28929f9b5b00f5513
parentAllow to disable lint by setting WANTLIB=no (diff)
downloadwireguard-openbsd-aadef8a2e8b28ce2cfbe3859e78ceb3fb1ac4b20.tar.xz
wireguard-openbsd-aadef8a2e8b28ce2cfbe3859e78ceb3fb1ac4b20.zip
Remove unused attr_optlen()
-rw-r--r--usr.sbin/bgpd/rde.h3
-rw-r--r--usr.sbin/bgpd/rde_attr.c11
2 files changed, 2 insertions, 12 deletions
diff --git a/usr.sbin/bgpd/rde.h b/usr.sbin/bgpd/rde.h
index ed277d6b672..c95fb64db69 100644
--- a/usr.sbin/bgpd/rde.h
+++ b/usr.sbin/bgpd/rde.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde.h,v 1.75 2005/12/30 14:07:40 claudio Exp $ */
+/* $OpenBSD: rde.h,v 1.76 2005/12/30 16:40:15 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Claudio Jeker <claudio@openbsd.org> and
@@ -252,7 +252,6 @@ int rde_decisionflags(void);
/* rde_attr.c */
int attr_write(void *, u_int16_t, u_int8_t, u_int8_t, void *,
u_int16_t);
-int attr_optlen(struct attr *);
void attr_optcopy(struct rde_aspath *, struct rde_aspath *);
int attr_optadd(struct rde_aspath *, u_int8_t, u_int8_t,
void *, u_int16_t);
diff --git a/usr.sbin/bgpd/rde_attr.c b/usr.sbin/bgpd/rde_attr.c
index 72305403c7a..a697aea7457 100644
--- a/usr.sbin/bgpd/rde_attr.c
+++ b/usr.sbin/bgpd/rde_attr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rde_attr.c,v 1.51 2005/12/30 14:07:40 claudio Exp $ */
+/* $OpenBSD: rde_attr.c,v 1.52 2005/12/30 16:40:15 claudio Exp $ */
/*
* Copyright (c) 2004 Claudio Jeker <claudio@openbsd.org>
@@ -65,15 +65,6 @@ attr_write(void *p, u_int16_t p_len, u_int8_t flags, u_int8_t type,
}
int
-attr_optlen(struct attr *a)
-{
- if (a->len > 255)
- return (4 + a->len);
- else
- return (3 + a->len);
-}
-
-int
attr_optadd(struct rde_aspath *asp, u_int8_t flags, u_int8_t type,
void *data, u_int16_t len)
{