summaryrefslogtreecommitdiff
path: root/isisd/topology
diff options
context:
space:
mode:
authorhasso <hasso>2005-08-10 15:08:21 +0000
committerhasso <hasso>2005-08-10 15:08:21 +0000
commit6204c7fb9e6bc2ca1ec72b46af4e3f575d5dd41c (patch)
tree8170eecbd840d858efb3cad0fae2290d0249955e /isisd/topology
parente0170882dbfa33b86316d38e8024e1114fa1db0a (diff)
* topology/spgrid.c: MAXLONG is deprecated, use LONG_MAX instead.
values.h, where MAXLONG is defined, is deprecated as well. Thanks to Greg for noticing and to Rivo for fix.
Diffstat (limited to 'isisd/topology')
-rw-r--r--isisd/topology/spgrid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/isisd/topology/spgrid.c b/isisd/topology/spgrid.c
index 22d3a804..bde0f950 100644
--- a/isisd/topology/spgrid.c
+++ b/isisd/topology/spgrid.c
@@ -1,7 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <values.h>
#include "random.c"
@@ -566,7 +565,7 @@ gen_spgrid_topology (struct vty *vty, struct list *topology)
if ( sl < sm ) { lx = sl; sl = sm; sm = lx; }
}
- if ( n >= (double)MAXLONG || m >= (double)MAXLONG )
+ if ( n >= (double)LONG_MAX || m >= (double)LONG_MAX )
{
zlog_err ("Too large problem. It can't be generated\n");
exit (4);