summaryrefslogtreecommitdiffstats
path: root/isisd/isis_flags.c
diff options
context:
space:
mode:
Diffstat (limited to 'isisd/isis_flags.c')
-rw-r--r--isisd/isis_flags.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/isisd/isis_flags.c b/isisd/isis_flags.c
index 03c91101f..ec0eaa4f8 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)
{