peek(1): fix ioerr typos
This commit is contained in:
parent
a217c4f631
commit
b68be7ff62
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user