X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_send.c;h=1e95aac6401cf43cf7368a0ad61a2c37e6428587;hp=b3bd6263ab39acdddee033053c92f2432e801123;hb=7df87a748fae6a9f20d337d79ec83978856f0c48;hpb=85094cd802bdb606d4e2bf7ed66dec51db2a0953 diff --git a/dccp_send.c b/dccp_send.c index b3bd6263..1e95aac6 100644 --- a/dccp_send.c +++ b/dccp_send.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2006-2011 Andre Noll + * Copyright (C) 2006-2014 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);