summaryrefslogtreecommitdiff
path: root/mcastseed
diff options
context:
space:
mode:
Diffstat (limited to 'mcastseed')
-rw-r--r--mcastseed/src/dgrambuf.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mcastseed/src/dgrambuf.c b/mcastseed/src/dgrambuf.c
index 75b82a6..e4c5e09 100644
--- a/mcastseed/src/dgrambuf.c
+++ b/mcastseed/src/dgrambuf.c
@@ -150,7 +150,7 @@ ssize_t dgrambuf_recvmmsg(dgrambuf_t dbuf, int sockfd, int timeout, int *info) {
if (recv_msg_count > 0) {
dbuf->dgram_ordered_seq_numbers_is_dirty = 1;
dbuf->stats.recv_dgrams += recv_msg_count;
- if ( recv_msg_count == vlen ) { /* XXX -Wsigncompare hints problems here and above */
+ if ( recv_msg_count == vlen ) {
*info |= DGRAMBUF_RECV_IOVEC_FULL;
}
}
@@ -340,11 +340,6 @@ mark_empty:
return -1;
}
- /* XXX Remove me when code is correct */
- if ( nwrite > total ) {
- fprintf(stderr, "Fatal bug : nwrite > total\n");
- return -3;
- }
if ( nwrite > 0 ) {
dbuf->stats.write_byte += nwrite;
*info |= DGRAMBUF_WRITE_SUCCESS;
@@ -372,7 +367,7 @@ mark_empty:
}
if ( i == vlen ) {
/* FIXME : this happens */
- fprintf(stderr, "Fatal bug, failed to find partial iov after partial write\n");
+ fprintf(stderr, "Fatal : failed to find partial iov after partial write\n");
return -3;
}