summaryrefslogtreecommitdiff
path: root/src/tools/cbr
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@ugent.be>2017-10-12 18:12:05 +0200
committerdimitri staessens <dimitri.staessens@ugent.be>2017-10-13 10:03:47 +0200
commit7a98128e053ccd59203757982f7332ed5e4568ea (patch)
tree8933b54692dabb4f8713d3e0f1689b49a1fae0ea /src/tools/cbr
parent281eaf854247703ed36725ab9dbef3a11d860c5c (diff)
downloadouroboros-7a98128e053ccd59203757982f7332ed5e4568ea.tar.gz
ouroboros-7a98128e053ccd59203757982f7332ed5e4568ea.zip
lib: Re-enable multi-block support
Multi-block support was forgotten during the update of the build system. This enables it again and fixes some bugs when it is disabled and larger SDUs are sent.
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;
}