]> 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 baef7a3814dc4956da31ad7b96290de31d0a7cc3..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;
@@ -184,7 +184,7 @@ int skiplist_insert(register struct skiplist *l, register void *key,
        /* DEBUG */
        if (!key) {
                flog_err(EC_LIB_DEVELOPMENT, "%s: key is 0, value is %p",
-                         __func__, value);
+                        __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__);