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.
diff --git a/lib/linklist.h b/lib/linklist.h
index a91947c..ace6dee 100644
--- a/lib/linklist.h
+++ b/lib/linklist.h
@@ -83,6 +83,7 @@
     else \
       (L)->tail->next = (N); \
     (L)->tail = (N); \
+    (L)->count++; \
   } while (0)
 
 /* List node delete macro.  */
@@ -96,6 +97,7 @@
       (N)->next->prev = (N)->prev; \
     else \
       (L)->tail = (N)->prev; \
+    (L)->count--; \
   } while (0)
 
 #endif /* _ZEBRA_LINKLIST_H */