From: paul Date: Tue, 12 Aug 2003 05:40:28 +0000 (+0000) Subject: 2003-08-12 Paul Jakma X-Git-Tag: frr-2.0-rc1~3934 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=071fcedb308f6b868b613453a0f78d12566f57a5;p=matthieu%2Ffrr.git 2003-08-12 Paul Jakma * lib/linkhist.h: The LISTNODE_{ADD,DEL} macros (not used anywhere) do not maintain the list count - fix. --- diff --git a/lib/linklist.h b/lib/linklist.h index a91947c323..ace6dee399 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -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 */