X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_send.c;h=22f2bd1ba63467c7a13eb15951b000e67ccf3a62;hp=53fa54e3fbac6fca71ea6005c10a6fa2e707dd3f;hb=f79ec016a7174af2060813cbf092711ce09e6024;hpb=ef1f130a1f9ac61a51da10ee56c5bd9ef1b52366 diff --git a/dccp_send.c b/dccp_send.c index 53fa54e3..22f2bd1b 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -11,9 +11,14 @@ * (C) 2005 Ian McDonald */ +#include +#include #include #include #include +#include +#include +#include #include "para.h" #include "error.h" @@ -102,13 +107,12 @@ static int dccp_init_fec(struct sender_client *sc) return mps; } -static int dccp_send_fec(struct sender_client *sc, char *buf, size_t len) +static void dccp_send_fec(struct sender_client *sc, char *buf, size_t len) { - int ret = write_nonblock(sc->fd, buf, len); + int ret = xwrite(sc->fd, buf, len); if (ret < 0) dccp_shutdown_client(sc); - return ret; } static void dccp_post_select(fd_set *rfds, __a_unused fd_set *wfds)