]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/qobj.c
Merge pull request #3485 from dslicenc/frr-reload-delete-vrf
[mirror_frr.git] / lib / qobj.c
index c75002052e5f10602cffa2141e8799e643e7d9fb..811645f3c33e337387be81f2789a68d2b551b819 100644 (file)
@@ -36,7 +36,7 @@ static unsigned int qobj_key(void *data)
        return (unsigned int)node->nid;
 }
 
-static int qobj_cmp(const void *a, const void *b)
+static bool qobj_cmp(const void *a, const void *b)
 {
        const struct qobj_node *na = a, *nb = b;
        return na->nid == nb->nid;
@@ -98,9 +98,7 @@ void qobj_init(void)
 {
        if (!nodes) {
                pthread_rwlock_init(&nodes_lock, NULL);
-               nodes = hash_create_size(16, qobj_key,
-                                        qobj_cmp,
-                                        "QOBJ Hash");
+               nodes = hash_create_size(16, qobj_key, qobj_cmp, "QOBJ Hash");
        }
 }