PERFORCE change 179200 for review

Garrett Cooper gcooper at FreeBSD.org
Sat Jun 5 21:55:24 UTC 2010


On Fri, Jun 4, 2010 at 11:17 PM, Julien Laffaye <jlaffaye at freebsd.org> wrote:
> http://p4web.freebsd.org/@@179200?ac=10
>
> Change 179200 by jlaffaye at jlaffaye-chulak on 2010/06/05 06:16:29
>
>        Changed the prototype of unpack_to_buffer()
>        It is more useful now as we know the size of the buffer.
>
> Affected files ...
>
> .. //depot/projects/soc2010/pkg_complete/lib/libpkg/file.c#4 edit
> .. //depot/projects/soc2010/pkg_complete/lib/libpkg/pkg.h#5 edit
>
> Differences ...
>
> ==== //depot/projects/soc2010/pkg_complete/lib/libpkg/file.c#4 (text+ko) ====
>
> @@ -335,20 +335,18 @@
>  * Unpack a single file, denoted by file, to a buffer. It proceeds to read it
>  * into the buffer which will need to be freed by the user at a later date.
>  *
> - * Returns an address to a buffer with the contents of *file if successful, or
> - * returns NULL on failure.
> + * Returns the size of the buffer if successful, or returns 0 on failure


More information about the p4-projects mailing list