summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-04 22:38:44 +0200
committerMartin Mares <mj@ucw.cz>2000-05-04 22:38:44 +0200
commit2a149b18cca3b20063be398e8098dfa8e1e2705d (patch)
tree6f239bb6fc7c7b2c42823f57313089e0412d5e2b
parent93a786cb034fdd18b8131a16a6ea3d1cd9bd00de (diff)
downloadbird-2a149b18cca3b20063be398e8098dfa8e1e2705d.tar
bird-2a149b18cca3b20063be398e8098dfa8e1e2705d.zip
Unused variables in IPv6 code.
-rw-r--r--lib/ipv6.c3
-rw-r--r--proto/bgp/packets.c2
2 files changed, 1 insertions, 4 deletions
diff --git a/lib/ipv6.c b/lib/ipv6.c
index a8b114d..b666ddd 100644
--- a/lib/ipv6.c
+++ b/lib/ipv6.c
@@ -147,7 +147,6 @@ ip_ntop(ip_addr a, char *b)
{
u16 words[8];
int bestpos, bestlen, curpos, curlen, i;
- char *c;
/* First of all, preprocess the address and find the longest run of zeros */
bestlen = bestpos = curpos = curlen = 0;
@@ -225,7 +224,7 @@ ip_ntox(ip_addr a, char *b)
int
ipv4_pton_u32(char *a, u32 *o)
{
- int i,j;
+ int i;
unsigned long int l;
u32 ia = 0;
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index d6c2169..6fabacf 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -557,8 +557,6 @@ bgp_do_rx_update(struct bgp_conn *conn,
DO_NLRI(mp_reach)
{
- ea_list *e = lp_alloc(bgp_linpool, sizeof(ea_list) + sizeof(eattr));
- struct adata *ad = lp_alloc(bgp_linpool, sizeof(struct adata) + 16);
int i;
/* Create fake NEXT_HOP attribute */