summaryrefslogtreecommitdiffstats
path: root/sysdep
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2000-05-04 22:30:36 +0200
committerMartin Mares <mj@ucw.cz>2000-05-04 22:30:36 +0200
commit93a786cb034fdd18b8131a16a6ea3d1cd9bd00de (patch)
tree7880559e8ad6f66b65a0fc97dfdf69f491a00e4a /sysdep
parentc817b9916f1134f687ba53220d607e6e193cf651 (diff)
downloadbird-93a786cb034fdd18b8131a16a6ea3d1cd9bd00de.tar
bird-93a786cb034fdd18b8131a16a6ea3d1cd9bd00de.zip
Removed a lot of unused variables.
Please try compiling your code with --enable-warnings to see them. (The unused parameter warnings are usually bogus, the unused variable ones are very useful, but gcc is unable to control them separately.)
Diffstat (limited to 'sysdep')
-rw-r--r--sysdep/linux/netlink/netlink.c1
-rw-r--r--sysdep/unix/io.c2
-rw-r--r--sysdep/unix/krt.c3
3 files changed, 1 insertions, 5 deletions
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)