diff options
author | David Lamparter <equinox@diac24.net> | 2019-11-14 23:27:29 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2019-11-30 00:38:32 +0100 |
commit | 154e9ca142bddf748f12a8042519ec6438364625 (patch) | |
tree | d96c1306241b608e8c2048f73862a369abaa5470 /lib/qobj.c | |
parent | lib: gcc 4.x workaround v2 for frr_interface_info (diff) | |
download | frr-154e9ca142bddf748f12a8042519ec6438364625.tar.xz frr-154e9ca142bddf748f12a8042519ec6438364625.zip |
lib: make cmd_element & qobj_type const
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'lib/qobj.c')
-rw-r--r-- | lib/qobj.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/qobj.c b/lib/qobj.c index 3e3860a96..1e48b541d 100644 --- a/lib/qobj.c +++ b/lib/qobj.c @@ -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; |