peek(1): fix ioerr typos

This commit is contained in:
dtb 2024-07-27 18:51:09 -06:00
parent a217c4f631
commit b68be7ff62
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -55,6 +55,7 @@ ioerr(char *argv0) {
static int
usage(char *argv0) {
(void)fprintf(stderr, "Usage: %s [-i]\n", argv0);
return EX_USAGE;
}
@ -106,10 +107,10 @@ int main(int argc, char *argv[]){
{
struct termios t;
if (tcgetattr(STDIN_FILENO, &t) != 0) { return ioerror(program_name); }
if (tcgetattr(STDIN_FILENO, &t) != 0) { return ioerr(program_name); }
t.c_lflag ^= ECHO;
if (tcsetattr(STDIN_FILENO, TCSAFLUSH, &t) != 0) {
return ioerror(program_name);
return ioerr(program_name);
}
}