aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-20 16:44:33 +0000
committerPaul LeoNerd Evans <leonerd@leonerd.org.uk>2012-01-20 16:44:33 +0000
commit8d2fa34a524f0456e863a22568d6609dcb9ce82a (patch)
treead45f42c68d8fe49be3c721c5db1065b9bbcee1c
parent6bc3f8a378338246603e21704763c65cdc6ceb77 (diff)
downloadtermo-8d2fa34a524f0456e863a22568d6609dcb9ce82a.tar.gz
termo-8d2fa34a524f0456e863a22568d6609dcb9ce82a.tar.xz
termo-8d2fa34a524f0456e863a22568d6609dcb9ce82a.zip
(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
-rw-r--r--driver-ti.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver-ti.c b/driver-ti.c
index e8515e3..cbf4a13 100644
--- a/driver-ti.c
+++ b/driver-ti.c
@@ -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));
}
}