mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-06 14:29:47 +00:00
* 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.
This commit is contained in:
parent
e0170882db
commit
6204c7fb9e
@ -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>
|
2005-05-26 Yossi Boaron <Yossi.Boaron@veraznetworks.com>
|
||||||
|
|
||||||
* isis_dr.c: Fix copy&paste error in isis_dr_resign().
|
* isis_dr.c: Fix copy&paste error in isis_dr_resign().
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <values.h>
|
|
||||||
|
|
||||||
#include "random.c"
|
#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 ( 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");
|
zlog_err ("Too large problem. It can't be generated\n");
|
||||||
exit (4);
|
exit (4);
|
||||||
|
Loading…
Reference in New Issue
Block a user