]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - write.h
Change the ->open method of writers to void.
[paraslash.git] / write.h
diff --git a/write.h b/write.h
index fd0f4f6ba7b42b186eab05efbc5ee61cdf499140..da6f1e75aabfe2ceac26e9d4c7074e243b9829c9 100644 (file)
--- a/write.h
+++ b/write.h
@@ -53,11 +53,13 @@ struct writer {
        /**
         * Open one instance of this writer.
         *
-        * This function should perform any work necessary to write the incoming
-        * stream. To this aim, it may allocate its private data structure and store
-        * a pointer to that structure via the given writer_node parameter.
+        * Perform any preparations needed to write the incoming stream.
+        * Usually this function just allocates its private data structure and
+        * stores a pointer to that structure in the ->private data of the
+        * given parameter. This function must either succeed or terminate the
+        * process.
         */
-       int (*open)(struct writer_node *);
+       void (*open)(struct writer_node *);
        /**
         * Prepare the fd sets for select.
         *