]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/login/logind-seat.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / login / logind-seat.c
index 85258737c3209acfbec1c8f5f0e552d5e23157aa..64a622307e354d2f7cb890863d5978346da8b3b9 100644 (file)
@@ -663,8 +663,7 @@ static bool seat_name_valid_char(char c) {
                 (c >= 'a' && c <= 'z') ||
                 (c >= 'A' && c <= 'Z') ||
                 (c >= '0' && c <= '9') ||
-                c == '-' ||
-                c == '_';
+                IN_SET(c, '-', '_');
 }
 
 bool seat_name_is_valid(const char *name) {