mirror of
https://github.com/systemd/systemd
synced 2024-07-21 10:17:21 +00:00
capability-util: use UINT32_MAX as shortcut where appropriatea
This commit is contained in:
parent
3b3ebabfa6
commit
76875ba9cb
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue