diff options
author | Thomas Haller <thaller@redhat.com> | 2020-04-17 14:31:10 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-04-17 14:32:22 (GMT) |
commit | f9d0181ceb2fc7c54abf89eff4c6b57e8fe6dd97 (patch) | |
tree | 88841b4ec9f72ba95df078f1771101c91568ee02 /lib/object.c | |
parent | 68b3431a91705c3dda9ef64e3222ae936b52d259 (diff) | |
download | libnl-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.c | 5 |
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; |