summaryrefslogtreecommitdiff
path: root/proto/ospf/packet.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2004-06-05 09:28:17 +0000
committerMartin Mares <mj@ucw.cz>2004-06-05 09:28:17 +0000
commit1512813e95a7edd2fad2834221dc1cb79aab6406 (patch)
tree9f32693281ed351a464b58b3bd1171b928f735be /proto/ospf/packet.c
parentc91fc9b6064e988e7526ecedd6b9e25f0204c4b7 (diff)
... and a whole bunch of unused parameters and variables in ospf.
Diffstat (limited to 'proto/ospf/packet.c')
-rw-r--r--proto/ospf/packet.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/proto/ospf/packet.c b/proto/ospf/packet.c
index 63a95435..441bf04a 100644
--- a/proto/ospf/packet.c
+++ b/proto/ospf/packet.c
@@ -31,7 +31,6 @@ fill_ospf_pkt_hdr (struct ospf_iface *ifa, void *buf, u8 h_type)
void
ospf_tx_authenticate (struct ospf_iface *ifa, struct ospf_packet *pkt)
{
- int i;
pkt->autype = htons (ifa->autype);
memcpy (pkt->authetication, ifa->aukey, 8);
return;
@@ -86,8 +85,6 @@ ospf_rx_hook (sock *sk, int size)
struct ospf_packet *ps;
struct ospf_iface *ifa = (struct ospf_iface *) (sk->data);
struct proto *p = (struct proto *) (ifa->proto);
- int i;
- u8 *pu8;
if (ifa->stub)
return (1);
@@ -218,7 +215,7 @@ ospf_tx_hook (sock * sk)
}
void
-ospf_err_hook (sock * sk, int err)
+ospf_err_hook (sock * sk, int err UNUSED)
{
struct ospf_iface *ifa;
struct proto *p;
@@ -241,8 +238,6 @@ sk_send_to_agt (sock * sk, u16 len, struct ospf_iface *ifa, u8 state)
void
sk_send_to_bdr (sock * sk, u16 len, struct ospf_iface *ifa)
{
- struct ospf_neighbor *n;
-
if (ipa_compare (ifa->drip, ipa_from_u32 (0)) != 0)
sk_send_to (sk, len, ifa->drip, OSPF_PROTO);
if (ipa_compare (ifa->bdrip, ipa_from_u32 (0)) != 0)