summaryrefslogtreecommitdiffstats
path: root/proto/ospf/lsalib.c
diff options
context:
space:
mode:
authorOndrej Zajicek <santiago@crfreenet.org>2010-05-02 22:41:40 +0200
committerOndrej Zajicek <santiago@crfreenet.org>2010-05-02 22:41:40 +0200
commit506fa1a73eab0c6426f68cd7784c6712898b88f3 (patch)
tree3c04d5900a70a026f98a0f20349fd33fde0e4162 /proto/ospf/lsalib.c
parent6384c7d7aa85d1e593eca30cda48f6677b023cb0 (diff)
downloadbird-506fa1a73eab0c6426f68cd7784c6712898b88f3.tar
bird-506fa1a73eab0c6426f68cd7784c6712898b88f3.zip
Merge several fixes suggested by Joakim Tjernlund.
Diffstat (limited to 'proto/ospf/lsalib.c')
-rw-r--r--proto/ospf/lsalib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/proto/ospf/lsalib.c b/proto/ospf/lsalib.c
index 27a0148..2f52fe9 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -240,7 +240,7 @@ lsasum_check(struct ospf_lsa_header *h, void *body)
c1 %= 255;
}
- x = ((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
+ x = (int)((length - LSA_CHECKSUM_OFFSET) * c0 - c1) % 255;
if (x <= 0)
x += 255;
y = 510 - c0 - x;