Correctly check last non-checked return values

This commit is contained in:
Ben RUBSON 2017-10-04 07:22:10 +02:00 committed by GitHub
parent 42dc11e3b1
commit 0b59ca5859

View File

@ -147,7 +147,9 @@ restart:
*p = '\0';
save_errno = errno;
if ((term.c_lflag & ECHO) == 0u) {
(void)write(output, "\n", 1);
if(write(output, "\n", 1) != -1) {
//dummy test to get rid of warn_unused_result compilation warning
}
}
/* Restore old terminal settings and signals. */