]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/qobj.c
Merge pull request #5473 from yasuhiro-ohara-ntt/ospf6d-self-orig-maxage-fix
[mirror_frr.git] / lib / qobj.c
index 3e3860a96a9f7e0591b30c6e0e5ca011e0baf5fb..1e48b541dc07db950c0c375773ae1e2d61ddd783 100644 (file)
@@ -48,7 +48,7 @@ static pthread_rwlock_t nodes_lock;
 static struct qobj_nodes_head nodes = { };
 
 
-void qobj_reg(struct qobj_node *node, struct qobj_nodetype *type)
+void qobj_reg(struct qobj_node *node, const struct qobj_nodetype *type)
 {
        node->type = type;
        pthread_rwlock_wrlock(&nodes_lock);
@@ -76,7 +76,7 @@ struct qobj_node *qobj_get(uint64_t id)
        return rv;
 }
 
-void *qobj_get_typed(uint64_t id, struct qobj_nodetype *type)
+void *qobj_get_typed(uint64_t id, const struct qobj_nodetype *type)
 {
        struct qobj_node dummy = {.nid = id};
        struct qobj_node *node;