]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
object: fix returning UINT_MAX for uint32_t in nl_object_diff()
authorThomas Haller <thaller@redhat.com>
Thu, 27 Nov 2014 11:00:41 +0000 (12:00 +0100)
committerThomas Haller <thaller@redhat.com>
Thu, 27 Nov 2014 11:00:41 +0000 (12:00 +0100)
Signed-off-by: Thomas Haller <thaller@redhat.com>
lib/object.c

index 52bc873654d4f6fb1fc1500a2947221002fb2580..cad24e0a9e4d22c5a9403a78aad2bab9f29eb521 100644 (file)
@@ -363,7 +363,7 @@ uint32_t nl_object_diff(struct nl_object *a, struct nl_object *b)
        struct nl_object_ops *ops = obj_ops(a);
 
        if (ops != obj_ops(b) || ops->oo_compare == NULL)
-               return UINT_MAX;
+               return UINT32_MAX;
 
        return ops->oo_compare(a, b, ~0, 0);
 }
@@ -383,7 +383,7 @@ int nl_object_match_filter(struct nl_object *obj, struct nl_object *filter)
 
        if (ops != obj_ops(filter) || ops->oo_compare == NULL)
                return 0;
-       
+
        return !(ops->oo_compare(obj, filter, filter->ce_mask,
                                 LOOSE_COMPARISON));
 }