aboutsummaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-06-11 23:01:09 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-06-11 23:01:09 +0200
commit950fb3efcc929d3f5a26852c4f64ccd038ce43a0 (patch)
tree026ccd9c89128c18eb2efb820692bfb3496721d5 /tests/server
parentee015947d4b82c53c16c50502e46c1af339d0c25 (diff)
write: add return code checks when used
These were just warnings in test code but it still makes it nicer to not generate them.
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/tftpd.c3
1 files changed, 2 insertions, 1 deletions
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;
}