diff options
author | Lennart Poettering <lennart@poettering.net> | 2023-01-02 15:22:15 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-02 17:16:50 +0100 |
commit | 4f06325ce97a072be84130c6ca8d29c52dcf9d0d (patch) | |
tree | 0660c2a964a2729f6c7487ecbabcbcb2804bb05d /src/tmpfiles | |
parent | efa75d702290c0a758dd30a2052fddaf8b7aa073 (diff) | |
download | systemd-4f06325ce97a072be84130c6ca8d29c52dcf9d0d.tar.gz |
fundamental: rework IN_SET() to require at least three arguments
If less than three parameters are passed a simple comparison is the
better choice.
Lo and behold this found two pretty bad typos.
Diffstat (limited to 'src/tmpfiles')
-rw-r--r-- | src/tmpfiles/offline-passwd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tmpfiles/offline-passwd.c b/src/tmpfiles/offline-passwd.c index f712099b0b..4ffed1c102 100644 --- a/src/tmpfiles/offline-passwd.c +++ b/src/tmpfiles/offline-passwd.c @@ -62,7 +62,7 @@ static int populate_uid_cache(const char *root, Hashmap **ret) { return -ENOMEM; r = hashmap_put(cache, n, UID_TO_PTR(pw->pw_uid)); - if (IN_SET(r, 0 -EEXIST)) + if (IN_SET(r, 0, -EEXIST)) continue; if (r < 0) return r; |