X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=send_common.c;h=3f29fe818c41e8b824d084c657712882192b177f;hp=5bd7d5708ac835553125d1591407d63e79d0add4;hb=03849db5d67e1702b1311429966fedd2545512d7;hpb=8aa0f575bcca12ab63ab53141c2144448c457478 diff --git a/send_common.c b/send_common.c index 5bd7d570..3f29fe81 100644 --- a/send_common.c +++ b/send_common.c @@ -1,13 +1,18 @@ /* - * Copyright (C) 2005-2011 Andre Noll + * Copyright (C) 2005-2014 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ /** \file send_common.c Functions used by more than one paraslash sender. */ +#include +#include #include #include +#include +#include +#include #include "para.h" #include "error.h" @@ -113,7 +118,7 @@ int send_queued_chunks(int fd, struct chunk_queue *cq) int ret; cq_get(qc, &buf, &len); - ret = write_nonblock(fd, buf, len); + ret = xwrite(fd, buf, len); if (ret < 0) return ret; cq_update(cq, ret);