(void)-cast calls to write() in driver-ti start/stop since we don't -really- care if they fail, there's not much we can do about it

This commit is contained in:
Paul LeoNerd Evans 2012-01-20 16:44:33 +00:00
parent 6bc3f8a378
commit 8d2fa34a52

View File

@ -298,7 +298,7 @@ static void start_driver(TermKey *tk, void *info)
*/
if(tk->fd != -1 && ti->start_string) {
// Can't call putp or tputs because they suck and don't give us fd control
write(tk->fd, ti->start_string, strlen(ti->start_string));
(void)write(tk->fd, ti->start_string, strlen(ti->start_string));
}
}
@ -308,7 +308,7 @@ static void stop_driver(TermKey *tk, void *info)
if(tk->fd != -1 && ti->stop_string) {
// Can't call putp or tputs because they suck and don't give us fd control
write(tk->fd, ti->stop_string, strlen(ti->stop_string));
(void)write(tk->fd, ti->stop_string, strlen(ti->stop_string));
}
}