From 6204c7fb9e6bc2ca1ec72b46af4e3f575d5dd41c Mon Sep 17 00:00:00 2001 From: hasso Date: Wed, 10 Aug 2005 15:08:21 +0000 Subject: * 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. --- isisd/topology/spgrid.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'isisd/topology') 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 #include #include -#include #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); -- cgit v1.2.1