summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsalib.c
diff options
context:
space:
mode:
authorOndrej Filip <feela@network.cz>2004-06-06 20:45:08 +0200
committerOndrej Filip <feela@network.cz>2004-06-06 20:45:08 +0200
commitd5d9693ce90c190ca7358b4ac71b9d034603a3ae (patch)
tree51bab1f9755d3d6715a74a66de056006eef31d9e /proto/ospf/lsalib.c
parente677d04aeb19e26da30e6a3ae94ad6e183d7af8e (diff)
downloadbird-d5d9693ce90c190ca7358b4ac71b9d034603a3ae.tar
bird-d5d9693ce90c190ca7358b4ac71b9d034603a3ae.zip
Deleted unused parameters.
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r--proto/ospf/lsalib.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index fcf23fc..e3df74c 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -73,7 +73,7 @@ ospf_age(struct ospf_area *oa)
en->lsa.age = 0;
en->inst_t = now;
en->ini_age = 0;
- lsasum_calculate(&en->lsa, en->lsa_body, po);
+ lsasum_calculate(&en->lsa, en->lsa_body);
ospf_lsupd_flood(NULL, NULL, &en->lsa, NULL, oa, 1);
continue;
}
@@ -321,7 +321,7 @@ ntohlsab(void *n, void *h, u8 type, u16 len)
/* FIXME This is VERY uneficient, I have huge endianity problems */
void
-lsasum_calculate(struct ospf_lsa_header *h, void *body, struct proto_ospf *po)
+lsasum_calculate(struct ospf_lsa_header *h, void *body)
{
u16 length;
@@ -330,7 +330,7 @@ lsasum_calculate(struct ospf_lsa_header *h, void *body, struct proto_ospf *po)
htonlsah(h, h);
htonlsab(body, body, h->type, length - sizeof(struct ospf_lsa_header));
- (void) lsasum_check(h, body, po);
+ (void) lsasum_check(h, body);
ntohlsah(h, h);
ntohlsab(body, body, h->type, length - sizeof(struct ospf_lsa_header));
@@ -341,7 +341,7 @@ lsasum_calculate(struct ospf_lsa_header *h, void *body, struct proto_ospf *po)
* It also returns value in big endian
*/
u16
-lsasum_check(struct ospf_lsa_header *h, void *body, struct proto_ospf *po)
+lsasum_check(struct ospf_lsa_header *h, void *body)
{
u8 *sp, *ep, *p, *q, *b;
int c0 = 0, c1 = 0;