diff options
author | paul <paul> | 2003-08-12 05:40:28 +0000 |
---|---|---|
committer | paul <paul> | 2003-08-12 05:40:28 +0000 |
commit | 982457e36cf92215ac12ba56caac8b9bf9145bf1 (patch) | |
tree | c4f8263c825e1b3d80e2d75672f9e4e8bd27c69f /lib | |
parent | 575e25b746f4c6ab3c8ae297ed9f969ea920d0bb (diff) | |
download | quagga-982457e36cf92215ac12ba56caac8b9bf9145bf1.tar.bz2 quagga-982457e36cf92215ac12ba56caac8b9bf9145bf1.tar.xz |
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.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/linklist.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/linklist.h b/lib/linklist.h index a91947c3..ace6dee3 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 */ |