From 950fb3efcc929d3f5a26852c4f64ccd038ce43a0 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 11 Jun 2011 23:01:09 +0200 Subject: write: add return code checks when used These were just warnings in test code but it still makes it nicer to not generate them. --- tests/server/tftpd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/server/tftpd.c') diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c index 9a4717723..92fb717b7 100644 --- a/tests/server/tftpd.c +++ b/tests/server/tftpd.c @@ -605,7 +605,8 @@ static ssize_t write_behind(struct testcase *test, int convert) } /* formerly putc(c, file); */ - write(test->ofile, &c, 1); + if(1 != write(test->ofile, &c, 1)) + break; skipit: prevchar = c; } -- cgit v1.2.3