Fix the following -Werror warning from clang 10.0.0 in tip:

usr.bin/tip/tip/tip.c:428:4: error: misleading indentation; statement is not part of the previous 'if' [-Werror,-Wmisleading-indentation]
                        if (gch == EOF)
                        ^
usr.bin/tip/tip/tip.c:426:5: note: previous statement is here
                } else if (!cumode && gch == character(value(FORCE)))
                  ^

The intent was to have the EOF check grouped with the getchar() call
just above it.  This was accidentally introduced in r354624.

MFC after:	3 days
This commit is contained in:
dim 2020-01-29 20:56:31 +00:00
parent 39ade32af9
commit ae12bee041

View File

@ -423,11 +423,12 @@ tipin(void)
if (boolean(value(HALFDUPLEX))) if (boolean(value(HALFDUPLEX)))
printf("\r\n"); printf("\r\n");
continue; continue;
} else if (!cumode && gch == character(value(FORCE))) } else if (!cumode && gch == character(value(FORCE))) {
gch = getchar(); gch = getchar();
if (gch == EOF) if (gch == EOF)
return; return;
gch = gch & STRIP_PAR; gch = gch & STRIP_PAR;
}
bol = any(gch, value(EOL)); bol = any(gch, value(EOL));
if (boolean(value(RAISE)) && islower(gch)) if (boolean(value(RAISE)) && islower(gch))
gch = toupper(gch); gch = toupper(gch);