]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/shared/ask-password-api.c
tree-wide: use IN_SET macro (#6977)
[thirdparty/systemd.git] / src / shared / ask-password-api.c
index de3847adfda5ef5ce2ab47998c77da7220898f7a..e33d8b11cf3d64a6bb5f81819cfdb59613138aaa 100644 (file)
@@ -337,7 +337,7 @@ int ask_password_tty(
                                 backspace_chars(ttyfd, p);
                         p = 0;
 
-                } else if (c == '\b' || c == 127) {
+                } else if (IN_SET(c, '\b', 127)) {
 
                         if (p > 0) {