summaryrefslogtreecommitdiffstats
path: root/lib/object.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-04-17 14:31:10 (GMT)
committerThomas Haller <thaller@redhat.com>2020-04-17 14:32:22 (GMT)
commitf9d0181ceb2fc7c54abf89eff4c6b57e8fe6dd97 (patch)
tree88841b4ec9f72ba95df078f1771101c91568ee02 /lib/object.c
parent68b3431a91705c3dda9ef64e3222ae936b52d259 (diff)
downloadlibnl-f9d0181ceb2fc7c54abf89eff4c6b57e8fe6dd97.zip
libnl-f9d0181ceb2fc7c54abf89eff4c6b57e8fe6dd97.tar.gz
libnl-f9d0181ceb2fc7c54abf89eff4c6b57e8fe6dd97.tar.bz2
lib: use proper int type for id attributes in nl_object_identical()
Diffstat (limited to 'lib/object.c')
-rw-r--r--lib/object.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/object.c b/lib/object.c
index d15cd15..07a21d2 100644
--- a/lib/object.c
+++ b/lib/object.c
@@ -314,8 +314,9 @@ int nl_object_identical(struct nl_object *a, struct nl_object *b)
return 0;
if (ops->oo_id_attrs_get) {
- int req_attrs_a = ops->oo_id_attrs_get(a);
- int req_attrs_b = ops->oo_id_attrs_get(b);
+ uint32_t req_attrs_a = ops->oo_id_attrs_get(a);
+ uint32_t req_attrs_b = ops->oo_id_attrs_get(b);
+
if (req_attrs_a != req_attrs_b)
return 0;
req_attrs = req_attrs_a;