summaryrefslogtreecommitdiff
path: root/lib/skiplist.h
diff options
context:
space:
mode:
authorG. Paul Ziemba <p-fbsd-bugs@ziemba.us>2021-09-21 07:34:20 -0700
committerG. Paul Ziemba <p-fbsd-bugs@ziemba.us>2021-09-21 17:03:53 -0700
commitc324b10f288a3bf3dfc8789b108d2daa53cf769a (patch)
treeecf8d62c62cc9dbe52f2b3ccfa6e5346e6c2e062 /lib/skiplist.h
parent598553e34fa61116694e9f3a1b6f1f72c3ac281c (diff)
lib: skiplist: clean up level counter implementation
Signed-off-by: G. Paul Ziemba <paulz@labn.net>
Diffstat (limited to 'lib/skiplist.h')
-rw-r--r--lib/skiplist.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/skiplist.h b/lib/skiplist.h
index a106a455d6..00950e13bb 100644
--- a/lib/skiplist.h
+++ b/lib/skiplist.h
@@ -60,7 +60,7 @@ struct skiplist {
int level; /* max lvl (1 + current # of levels in list) */
unsigned int count;
struct skiplistnode *header;
- struct skiplistnode *stats;
+ int *level_stats;
struct skiplistnode
*last; /* last real list item (NULL if empty list) */
@@ -123,6 +123,7 @@ extern int skiplist_empty(register struct skiplist *l); /* in */
extern unsigned int skiplist_count(register struct skiplist *l); /* in */
+struct vty;
extern void skiplist_debug(struct vty *vty, struct skiplist *l);
extern void skiplist_test(struct vty *vty);