tree-wide: use SET_FLAG in more places (#5892)

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2017-05-07 07:03:28 -04:00
committed by Lennart Poettering
parent f7bf1abef9
commit ab8ee0f259
4 changed files with 6 additions and 18 deletions
+1 -4
View File
@@ -99,10 +99,7 @@ static int toggle_utf8(const char *name, int fd, bool utf8) {
r = tcgetattr(fd, &tc);
if (r >= 0) {
if (utf8)
tc.c_iflag |= IUTF8;
else
tc.c_iflag &= ~IUTF8;
SET_FLAG(tc.c_iflag, IUTF8, utf8);
r = tcsetattr(fd, TCSANOW, &tc);
}
if (r < 0)