upd_send.c: Use write_nonblock() rather than write_all().
[paraslash.git] / write.h
diff --git a/write.h b/write.h
index 02471f32b1d1ba5e424bb8571225fed4f02418e8..7ecb091ba9d6d83e94d7d976a1e37941985360c6 100644 (file)
--- a/write.h
+++ b/write.h
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2006-2008 Andre Noll <maan@systemlinux.org>
+ * Copyright (C) 2006-2009 Andre Noll <maan@systemlinux.org>
  *
  * Licensed under the GPL v2. For licencing details see COPYING.
  */
@@ -84,6 +84,7 @@ struct writer {
         * This is a optional function pointer used for cleaning up.
         */
        void (*shutdown)(struct writer_node *);
+       struct ggo_help help;
 };
 
 /**
@@ -95,7 +96,7 @@ struct writer_node_group {
        /** Array of pointers to the corresponding writer nodes. */
        struct writer_node *writer_nodes;
        /** The maximum of the chunk_bytes values of the writer nodes in this group. */
-       size_t max_chunk_bytes;
+       int max_chunk_bytes;
        /** Non-zero if an error or end of file was encountered by the feeding task. */
        int *input_error;
        /** Current output buffer. */