X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_send.c;h=22f2bd1ba63467c7a13eb15951b000e67ccf3a62;hp=fa2a163c5afdb1f9721b274f02bafc5402422800;hb=1cccf6fa93c251f8f2805aa5fb163741d851c051;hpb=9de1287d67c9562e9140c6dc7deb0c01c4e10cc0 diff --git a/dccp_send.c b/dccp_send.c index fa2a163c..22f2bd1b 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2012 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" @@ -104,7 +109,7 @@ static int dccp_init_fec(struct sender_client *sc) 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);