From c93c46f0c10e56b52d3c980e7082ab74f7003f66 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 13 Jan 2011 09:49:01 -0500 Subject: Warning cleanups. --- contrib/binlog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'contrib/binlog.c') diff --git a/contrib/binlog.c b/contrib/binlog.c index 965c3fa0..1506be88 100644 --- a/contrib/binlog.c +++ b/contrib/binlog.c @@ -3,6 +3,7 @@ */ #include #include +#include #include #include #include @@ -59,7 +60,7 @@ int main(int argc, char **argv) { while (1){ l = read(ifd, buf, BUFSIZ); if (l > 0) - write(ofd, buf, l); + assert(write(ofd, buf, l) > 0); usleep(1000); bzero(buf, BUFSIZ); spinner( n++ ); -- cgit v1.2.1