summaryrefslogtreecommitdiff
path: root/src/tools/cbr
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-10-14 08:29:50 +0000
committerSander Vrijders <[email protected]>2017-10-14 08:29:50 +0000
commit1888c137a8ff315bc549c16740aa727da8c666f5 (patch)
tree9cd6534cdd79de613e1be76d876d435db8e344b5 /src/tools/cbr
parent76ce1f398a6efae7f62b6e786ef94e89be0784c1 (diff)
parent7a98128e053ccd59203757982f7332ed5e4568ea (diff)
downloadouroboros-1888c137a8ff315bc549c16740aa727da8c666f5.tar.gz
ouroboros-1888c137a8ff315bc549c16740aa727da8c666f5.zip
Merged in dstaesse/ouroboros/be-fix-multiblock (pull request #627)
lib: Re-enable multi-block support
Diffstat (limited to 'src/tools/cbr')
-rw-r--r--src/tools/cbr/cbr_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/cbr/cbr_client.c b/src/tools/cbr/cbr_client.c
index decf6f96..79425ff2 100644
--- a/src/tools/cbr/cbr_client.c
+++ b/src/tools/cbr/cbr_client.c
@@ -102,7 +102,7 @@ int client_main(char * server,
ts_add(&end, &intv, &end);
memcpy(buf, &seqnr, sizeof(seqnr));
- if (flow_write(fd, buf, size) == -1) {
+ if (flow_write(fd, buf, size) < 0) {
stop = true;
continue;
}
@@ -120,7 +120,7 @@ int client_main(char * server,
} else { /* flood */
while (!stop) {
clock_gettime(CLOCK_REALTIME, &end);
- if (flow_write(fd, buf, (size_t) size) == -1) {
+ if (flow_write(fd, buf, (size_t) size) < 0) {
stop = true;
continue;
}