summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/ipv4.c2
-rw-r--r--nest/a-path.c2
-rw-r--r--nest/iface.c3
-rw-r--r--nest/proto.c1
-rw-r--r--nest/rt-table.c1
-rw-r--r--proto/bgp/packets.c3
-rw-r--r--sysdep/linux/netlink/netlink.c1
-rw-r--r--sysdep/unix/io.c2
-rw-r--r--sysdep/unix/krt.c3
9 files changed, 4 insertions, 14 deletions
diff --git a/lib/ipv4.c b/lib/ipv4.c
index db3b54a..8488a28 100644
--- a/lib/ipv4.c
+++ b/lib/ipv4.c
@@ -72,7 +72,7 @@ ipv4_class_mask(u32 a)
int
ip_pton(char *a, ip_addr *o)
{
- int i,j;
+ int i;
unsigned long int l;
u32 ia = 0;
diff --git a/nest/a-path.c b/nest/a-path.c
index 3541522..0ea3e7b 100644
--- a/nest/a-path.c
+++ b/nest/a-path.c
@@ -47,7 +47,7 @@ as_path_format(struct adata *path, byte *buf, unsigned int size)
byte *e = p + path->length;
byte *end = buf + size - 8;
int sp = 1;
- int l, type, isset, as;
+ int l, isset;
while (p < e)
{
diff --git a/nest/iface.c b/nest/iface.c
index d41b39d..c585a53 100644
--- a/nest/iface.c
+++ b/nest/iface.c
@@ -202,7 +202,6 @@ struct iface *
if_update(struct iface *new)
{
struct iface *i;
- struct ifa *a, *b;
unsigned c;
WALK_LIST(i, iface_list)
@@ -263,7 +262,7 @@ if_end_partial_update(struct iface *i)
void
if_end_update(void)
{
- struct iface *i, j;
+ struct iface *i;
struct ifa *a, *b;
if (!config->router_id)
diff --git a/nest/proto.c b/nest/proto.c
index 1af76ea..7b9821a 100644
--- a/nest/proto.c
+++ b/nest/proto.c
@@ -460,7 +460,6 @@ proto_notify_state(struct proto *p, unsigned ps)
}
break;
default:
- error:
bug("Invalid state transition for %s from %s/%s to */%s", p->name, c_states[cs], p_states[ops], p_states[ps]);
}
p->proto_state = ps;
diff --git a/nest/rt-table.c b/nest/rt-table.c
index 0c4c9e7..832e9ef 100644
--- a/nest/rt-table.c
+++ b/nest/rt-table.c
@@ -747,7 +747,6 @@ rt_show_cleanup(struct cli *c)
void
rt_show(struct rt_show_data *d)
{
- struct rtable_config *tc;
net *n;
if (d->pxlen == 256)
diff --git a/proto/bgp/packets.c b/proto/bgp/packets.c
index e9ba050..d6c2169 100644
--- a/proto/bgp/packets.c
+++ b/proto/bgp/packets.c
@@ -77,7 +77,6 @@ bgp_create_update(struct bgp_conn *conn, byte *buf)
struct bgp_bucket *buck;
int remains = BGP_MAX_PACKET_LENGTH - BGP_HEADER_LENGTH - 4;
byte *w;
- ip_addr ip;
int wd_size = 0;
int r_size = 0;
int a_size = 0;
@@ -717,8 +716,6 @@ bgp_log_error(struct bgp_proto *p, char *msg, unsigned code, unsigned subcode, b
static void
bgp_rx_notification(struct bgp_conn *conn, byte *pkt, int len)
{
- unsigned arg;
-
if (len < 21)
{
bgp_error(conn, 1, 2, pkt+16, 2);
diff --git a/sysdep/linux/netlink/netlink.c b/sysdep/linux/netlink/netlink.c
index 86f13f0..bafa2e9 100644
--- a/sysdep/linux/netlink/netlink.c
+++ b/sysdep/linux/netlink/netlink.c
@@ -463,7 +463,6 @@ nl_send_route(struct krt_proto *p, rte *e, int new)
struct rtmsg r;
char buf[128];
} r;
- struct nlmsghdr *reply;
DBG("nl_send_route(%I/%d,new=%d)\n", net->n.prefix, net->n.pxlen, new);
diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c
index 895f537..996b971 100644
--- a/sysdep/unix/io.c
+++ b/sysdep/unix/io.c
@@ -521,7 +521,7 @@ sk_passive_connected(sock *s, struct sockaddr *sa, int al, int type)
int
sk_open(sock *s)
{
- int fd, e;
+ int fd;
sockaddr sa;
int one = 1;
int type = s->type;
diff --git a/sysdep/unix/krt.c b/sysdep/unix/krt.c
index 803077f..6ef8d90 100644
--- a/sysdep/unix/krt.c
+++ b/sysdep/unix/krt.c
@@ -544,9 +544,7 @@ sentenced:
static void
krt_prune(struct krt_proto *p)
{
- struct proto *pp = &p->p;
struct rtable *t = p->p.table;
- struct fib_node *f;
KRT_TRACE(p, D_EVENTS, "Pruning table %s", t->name);
FIB_WALK(&t->fib, f)
@@ -605,7 +603,6 @@ void
krt_got_route_async(struct krt_proto *p, rte *e, int new)
{
net *net = e->net;
- rte *old = net->routes;
int src = e->u.krt.src;
switch (src)