X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_send.c;h=5449a6a9664f070b0115d3bdb2a6f9471718f796;hp=a4a9371a81b289ca1cdca2cd2949a9547c16691f;hb=d85091bebd5abb6f473a31dd118f4d853d1317c9;hpb=de28dd53360c089e26ccc672317572b8f8e00bb0 diff --git a/dccp_send.c b/dccp_send.c index a4a9371a..5449a6a9 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -51,7 +51,7 @@ struct dccp_client { struct chunk_queue *cq; }; -static void dccp_pre_select( int *max_fileno, fd_set *rfds, +static void dccp_pre_select(int *max_fileno, fd_set *rfds, __a_unused fd_set *wfds) { if (listen_fd < 0) @@ -145,10 +145,8 @@ static int dccp_write(int fd, const char *buf, size_t len) */ if (ret < 0 && errno == EAGAIN) return written; - if (ret < 0) { - PARA_ERROR_LOG("%s\n", strerror(errno)); - return -E_DCCP_WRITE; - } + if (ret < 0) + return -ERRNO_TO_PARA_ERROR(errno); written += ret; } return written;