mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 10:54:56 +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 \
|
||||
(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 */
|
||||
|
Loading…
Reference in New Issue
Block a user