]> git.proxmox.com Git - mirror_frr.git/commitdiff
* topology/spgrid.c: MAXLONG is deprecated, use LONG_MAX instead.
authorhasso <hasso>
Wed, 10 Aug 2005 15:08:21 +0000 (15:08 +0000)
committerhasso <hasso>
Wed, 10 Aug 2005 15:08:21 +0000 (15:08 +0000)
  values.h, where MAXLONG is defined, is deprecated as well.

Thanks to Greg for noticing and to Rivo for fix.

isisd/ChangeLog
isisd/topology/spgrid.c

index 6d53c3537355e599e16a30b2329782cee48ec3ba..f8278c5fb2a25253002bd8eb41a5c1cc1a35c037 100644 (file)
@@ -1,3 +1,8 @@
+2005-08-10 Hasso Tepper <hasso at quagga.net>
+
+       * topology/spgrid.c: MAXLONG is deprecated, use LONG_MAX instead.
+         values.h, where MAXLONG is defined, is deprecated as well.
+
 2005-05-26 Yossi Boaron <Yossi.Boaron@veraznetworks.com>
 
        * isis_dr.c: Fix copy&paste error in isis_dr_resign().
index 22d3a80419039d4fce011f28d79112a33591c03c..bde0f950842a31f954e5d026c16e6727c9312140 100644 (file)
@@ -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);