Use IN_SET() more

This commit is contained in:
Frantisek Sumsal
2024-04-02 18:08:15 +02:00
parent 7a829af384
commit a30fdf857b
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -530,7 +530,7 @@ static int parse_one_option(const char *option) {
* - text descriptions prefixed with "%:" or "%keyring:".
* - text description with no prefix.
* - numeric keyring id (ignored in current patch set). */
if (*val == '@' || *val == '%')
if (IN_SET(*val, '@', '%'))
keyring = strndup(val, sep - val);
else
/* add type prefix if missing (crypt_set_keyring_to_link() expects it) */