]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/skiplist.c
Merge pull request #5590 from qlyoung/fix-nhrp-underflow
[mirror_frr.git] / lib / skiplist.c
index 585cf859e5742b1a952a0ba935e6c9f1c6b19d56..6efa2c362d9efbcd5ca2c133d204869cae13f8c7 100644 (file)
@@ -88,7 +88,7 @@ static struct skiplist *skiplist_last_created; /* debugging hack */
 #endif
 
 
-static int randomLevel()
+static int randomLevel(void)
 {
        register int level = 0;
        register int b;
@@ -183,8 +183,8 @@ int skiplist_insert(register struct skiplist *l, register void *key,
 
        /* DEBUG */
        if (!key) {
-               flog_err(LIB_ERR_DEVELOPMENT, "%s: key is 0, value is %p",
-                         __func__, value);
+               flog_err(EC_LIB_DEVELOPMENT, "%s: key is 0, value is %p",
+                        __func__, value);
        }
 
        p = l->header;
@@ -608,7 +608,7 @@ void skiplist_test(struct vty *vty)
        struct skiplist *l;
        register int i, k;
        void *keys[sampleSize];
-       void *v;
+       void *v = NULL;
 
        zlog_debug("%s: entry", __func__);