Fix return values; correct argument name. From Tara Milana.
--HG--
branch : HEAD
diff --git a/man/zip_source_function.mdoc b/man/zip_source_function.mdoc
index 83354ba..81049d8 100644
--- a/man/zip_source_function.mdoc
+++ b/man/zip_source_function.mdoc
@@ -1,4 +1,4 @@
-.\" $NiH: zip_source_function.mdoc,v 1.13 2005/06/09 21:14:54 wiz Exp $
+.\" $NiH: zip_source_function.mdoc,v 1.14 2005/07/20 17:18:04 wiz Exp $
.\"
.\" zip_source_function.mdoc -- create data source from function
.\" Copyright (C) 2004, 2005 Dieter Baron and Thomas Klausner
@@ -31,7 +31,7 @@
.\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
.\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd July 20, 2005
+.Dd March 25, 2006
.Dt ZIP_SOURCE_FUNCTION 3
.Os
.Sh NAME
@@ -55,7 +55,7 @@
.Ed
.Pp
When called by the library, the first argument is the
-.Ar state
+.Ar userdata
argument supplied to
.Fn zip_source_function .
The next two arguments are a buffer
@@ -86,7 +86,7 @@
Get meta information for the input data.
.Ar data
points to a struct zip_stat, which should be filled in.
-Return 0 on success, \-1 on error.
+Return sizeof(struct zip_stat) on success, \-1 on error.
.It Dv ZIP_SOURCE_ERROR
Get error information.
.Ar data
@@ -96,7 +96,7 @@
See
.Xr zip_errors 3
for details on the error codes.
-Return 0.
+Return return(2 * sizeof(int)).
.It Dv ZIP_SOURCE_FREE
Clean up and free all resources.
Return 0.