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.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user