X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=dccp_send.c;h=1e95aac6401cf43cf7368a0ad61a2c37e6428587;hp=b3bd6263ab39acdddee033053c92f2432e801123;hb=eb8ac00d795be355154f237d7e29f8ecf9999846;hpb=a0013831ff918ac229066c9c804f75e1b50011c5 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);