diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2021-03-05 17:51:34 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 17:51:34 +0100 |
commit | 63dc82d378e1cfda8f560e8da9aa2df549c2b026 (patch) | |
tree | b23222bcd0aefdb8851184cebd74e4801f1eb50c /src/sysusers | |
parent | Merge pull request #18885 from yuwata/udev-fix-import-program-rhbz-1935062 (diff) | |
parent | efi: introduce UINT32_MAX and UINT64_MAX (diff) | |
download | systemd-63dc82d378e1cfda8f560e8da9aa2df549c2b026.tar.xz systemd-63dc82d378e1cfda8f560e8da9aa2df549c2b026.zip |
Merge pull request #18852 from yuwata/tree-wide-use-UINT64_MAX
tree-wide: use UINT64_MAX or friends
Diffstat (limited to 'src/sysusers')
-rw-r--r-- | src/sysusers/sysusers.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sysusers/sysusers.c b/src/sysusers/sysusers.c index 88e365c662..b098eb27cd 100644 --- a/src/sysusers/sysusers.c +++ b/src/sysusers/sysusers.c @@ -256,7 +256,7 @@ static int make_backup(const char *target, const char *x) { if (r < 0) return r; - r = copy_bytes(src, fileno(dst), (uint64_t) -1, COPY_REFLINK); + r = copy_bytes(src, fileno(dst), UINT64_MAX, COPY_REFLINK); if (r < 0) return r; @@ -539,7 +539,7 @@ static int write_temporary_shadow(const char *shadow_path, FILE **tmpfile, char .sp_warn = -1, .sp_inact = -1, .sp_expire = -1, - .sp_flag = (unsigned long) -1, /* this appears to be what everybody does ... */ + .sp_flag = ULONG_MAX, /* this appears to be what everybody does ... */ }; r = putspent_sane(&n, shadow); |