summaryrefslogtreecommitdiffstats
path: root/proto
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2002-11-13 09:47:19 +0100
committerMartin Mares <mj@ucw.cz>2002-11-13 09:47:19 +0100
commit47f18ac39a313cf213b43320557239c5d0855a11 (patch)
treefce89e5849e9c6e6c33f94a301001827faed04e5 /proto
parent7d875e094bbbb9d4b234e31fe08f31510ac1d7d0 (diff)
downloadbird-47f18ac39a313cf213b43320557239c5d0855a11.tar
bird-47f18ac39a313cf213b43320557239c5d0855a11.zip
ABS should be a macro.
Diffstat (limited to 'proto')
-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 46dc707..cf45fd4 100644
--- a/proto/ospf/lsalib.c
+++ b/proto/ospf/lsalib.c
@@ -399,7 +399,7 @@ lsa_comp(struct ospf_lsa_header *l1, struct ospf_lsa_header *l2)
if((l1->age==LSA_MAXAGE)&&(l2->age!=LSA_MAXAGE)) return CMP_NEWER;
if((l2->age==LSA_MAXAGE)&&(l1->age!=LSA_MAXAGE)) return CMP_OLDER;
- if(abs(l1->age-l2->age)>LSA_MAXAGEDIFF)
+ if(ABS(l1->age-l2->age)>LSA_MAXAGEDIFF)
return l1->age<l2->age ? CMP_NEWER : CMP_OLDER;
return CMP_SAME;