]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
capability-util: use UINT32_MAX as shortcut where appropriatea 26508/head
authorLennart Poettering <lennart@poettering.net>
Mon, 20 Feb 2023 15:26:46 +0000 (16:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Mon, 20 Feb 2023 15:49:46 +0000 (16:49 +0100)
src/basic/capability-util.c

index 5dd2f0a63c1393cad054c9127d852555d6414f34..bda7cbf45c5a30255f95719b0f477681cd016c52 100644 (file)
@@ -283,8 +283,8 @@ static int drop_from_file(const char *fn, uint64_t keep) {
         if (current == after)
                 return 0;
 
-        lo = after & UINT32_C(0xFFFFFFFF);
-        hi = (after >> 32) & UINT32_C(0xFFFFFFFF);
+        lo = after & UINT32_MAX;
+        hi = (after >> 32) & UINT32_MAX;
 
         return write_string_filef(fn, 0, "%" PRIu32 " %" PRIu32, lo, hi);
 }