]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - send_common.c
string: Clean up for_each_line() and related functions.
[paraslash.git] / send_common.c
index 71e0852a665d2222cf0ae8fa3b05856d1ab5db2e..250a2a0bc5a80f8973b33d43bcb2e12e3ee723e9 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2005-2012 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2005-2013 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -113,7 +113,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);