capability-util: use UINT32_MAX as shortcut where appropriatea

This commit is contained in:
Lennart Poettering 2023-02-20 16:26:46 +01:00
parent 3b3ebabfa6
commit 76875ba9cb

View 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);
}