* 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.
diff --git a/isisd/topology/spgrid.c b/isisd/topology/spgrid.c
index 22d3a80..bde0f95 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 @@
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);