diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-07-17 19:55:10 +0200 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2016-07-17 19:55:10 +0200 |
commit | 8b8750daa2f96a75817af3049bba6081cb337942 (patch) | |
tree | 6b16d179cc18ddd26cf4f30c269829ff46fadd23 | |
parent | 2b13fb969c6a05815c34295afeaffee4d60dc7fd (diff) | |
download | eficast-8b8750daa2f96a75817af3049bba6081cb337942.tar.gz eficast-8b8750daa2f96a75817af3049bba6081cb337942.tar.bz2 eficast-8b8750daa2f96a75817af3049bba6081cb337942.zip |
Remove solved /* XXX ... */
-rw-r--r-- | mcastseed/src/dgrambuf.c | 9 |
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; } |