2003-08-12 Paul Jakma <paul@dishone.st>

* lib/linkhist.h: The LISTNODE_{ADD,DEL} macros (not used anywhere)
	  do not maintain the list count - fix.
This commit is contained in:
paul 2003-08-12 05:40:28 +00:00
parent ac41b2a2d4
commit 071fcedb30

View File

@ -83,6 +83,7 @@ void list_add_list (list, list);
else \
(L)->tail->next = (N); \
(L)->tail = (N); \
(L)->count++; \
} while (0)
/* List node delete macro. */
@ -96,6 +97,7 @@ void list_add_list (list, list);
(N)->next->prev = (N)->prev; \
else \
(L)->tail = (N)->prev; \
(L)->count--; \
} while (0)
#endif /* _ZEBRA_LINKLIST_H */