]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/portable/portabled-bus.c
tree-wide: use UINT64_MAX or friends
[thirdparty/systemd.git] / src / portable / portabled-bus.c
index 8de8bfc247c4ef673dc1c2fc10780110bf883e5b..6d0dee99c3f703494329f3cfa65c9d6c821d027a 100644 (file)
@@ -42,7 +42,7 @@ static int property_get_pool_usage(
                 sd_bus_error *error) {
 
         _cleanup_close_ int fd = -1;
-        uint64_t usage = (uint64_t) -1;
+        uint64_t usage = UINT64_MAX;
 
         assert(bus);
         assert(reply);
@@ -68,7 +68,7 @@ static int property_get_pool_limit(
                 sd_bus_error *error) {
 
         _cleanup_close_ int fd = -1;
-        uint64_t size = (uint64_t) -1;
+        uint64_t size = UINT64_MAX;
 
         assert(bus);
         assert(reply);