mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-08 11:18:43 +00:00
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:
parent
ac41b2a2d4
commit
071fcedb30
@ -83,6 +83,7 @@ void list_add_list (list, list);
|
|||||||
else \
|
else \
|
||||||
(L)->tail->next = (N); \
|
(L)->tail->next = (N); \
|
||||||
(L)->tail = (N); \
|
(L)->tail = (N); \
|
||||||
|
(L)->count++; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
/* List node delete macro. */
|
/* List node delete macro. */
|
||||||
@ -96,6 +97,7 @@ void list_add_list (list, list);
|
|||||||
(N)->next->prev = (N)->prev; \
|
(N)->next->prev = (N)->prev; \
|
||||||
else \
|
else \
|
||||||
(L)->tail = (N)->prev; \
|
(L)->tail = (N)->prev; \
|
||||||
|
(L)->count--; \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#endif /* _ZEBRA_LINKLIST_H */
|
#endif /* _ZEBRA_LINKLIST_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user