diff options
author | Josh Bailey <joshb@google.com> | 2012-03-24 08:35:20 -0700 |
---|---|---|
committer | Avneesh Sachdev <avneesh@opensourcerouting.org> | 2012-04-07 13:54:37 -0700 |
commit | 3f045a08812525505e165deea99a79447b44506b (patch) | |
tree | a5c944b0584e0e5a14908a2ac9476637e7c1d7e6 /isisd/isis_flags.c | |
parent | 6902c69aa30a73ecd70ef8941518b541ca02b878 (diff) | |
download | quagga-3f045a08812525505e165deea99a79447b44506b.tar.bz2 quagga-3f045a08812525505e165deea99a79447b44506b.tar.xz |
isisd: add Google's changes to IS-IS
Diffstat (limited to 'isisd/isis_flags.c')
-rw-r--r-- | isisd/isis_flags.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/isisd/isis_flags.c b/isisd/isis_flags.c index 03c91101..ec0eaa4f 100644 --- a/isisd/isis_flags.c +++ b/isisd/isis_flags.c @@ -36,11 +36,11 @@ flags_initialize (struct flags *flags) flags->free_idcs = NULL; } -int +long int flags_get_index (struct flags *flags) { struct listnode *node; - int index; + long int index; if (flags->free_idcs == NULL || flags->free_idcs->count == 0) { @@ -49,7 +49,7 @@ flags_get_index (struct flags *flags) else { node = listhead (flags->free_idcs); - index = (int) listgetdata (node); + index = (long int) listgetdata (node); listnode_delete (flags->free_idcs, (void *) index); index--; } @@ -58,7 +58,7 @@ flags_get_index (struct flags *flags) } void -flags_free_index (struct flags *flags, int index) +flags_free_index (struct flags *flags, long int index) { if (index + 1 == flags->maxindex) { |