diff options
author | James Prestwood <prestwoj@gmail.com> | 2022-07-26 09:34:59 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2022-07-26 12:07:37 -0500 |
commit | 5e7d851a7663b1d5ce8e7ee37222b0174d480280 (patch) | |
tree | 2637851cdee6e815a97110c8d1617a9bcfcb6424 | |
parent | b31079f829638c2e9128ed80729f9a3ca42e3319 (diff) |
genl: make l_genl_attr_recurse take a const pointer
The outer attribute iterator should be const since its not being
modified.
-rw-r--r-- | ell/genl.c | 2 | ||||
-rw-r--r-- | ell/genl.h | 3 |
2 files changed, 3 insertions, 2 deletions
@@ -1761,7 +1761,7 @@ LIB_EXPORT bool l_genl_attr_next(struct l_genl_attr *attr, return true; } -LIB_EXPORT bool l_genl_attr_recurse(struct l_genl_attr *attr, +LIB_EXPORT bool l_genl_attr_recurse(const struct l_genl_attr *attr, struct l_genl_attr *nested) { const struct nlattr *nla; @@ -109,7 +109,8 @@ bool l_genl_msg_leave_nested(struct l_genl_msg *msg); bool l_genl_attr_init(struct l_genl_attr *attr, struct l_genl_msg *msg); bool l_genl_attr_next(struct l_genl_attr *attr, uint16_t *type, uint16_t *len, const void **data); -bool l_genl_attr_recurse(struct l_genl_attr *attr, struct l_genl_attr *nested); +bool l_genl_attr_recurse(const struct l_genl_attr *attr, + struct l_genl_attr *nested); bool l_genl_family_info_has_group(const struct l_genl_family_info *info, const char *group); |