PERFORCE change 144939 for review
Anselm Strauss
strauss at FreeBSD.org
Wed Jul 9 12:33:57 UTC 2008
http://perforce.freebsd.org/chv.cgi?CH=144939
Change 144939 by strauss at strauss_marvelman on 2008/07/09 12:32:59
Eliminated some compile warnings
Affected files ...
.. //depot/projects/soc2008/strauss_libarchive/libarchive/archive.h#3 edit
.. //depot/projects/soc2008/strauss_libarchive/libarchive/archive_write_set_format_zip.c#4 edit
Differences ...
==== //depot/projects/soc2008/strauss_libarchive/libarchive/archive.h#3 (ktext) ====
@@ -22,7 +22,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id$ $Change: 143014 $ $DateTime$ $Author$
+ * $Id$ $Change: 144939 $ $DateTime$ $Author$
*/
#ifndef ARCHIVE_H_INCLUDED
@@ -471,6 +471,7 @@
__LA_DECL int archive_write_set_format_shar(struct archive *);
__LA_DECL int archive_write_set_format_shar_dump(struct archive *);
__LA_DECL int archive_write_set_format_ustar(struct archive *);
+__LA_DECL int archive_write_set_format_zip(struct archive *);
__LA_DECL int archive_write_open(struct archive *, void *,
archive_open_callback *, archive_write_callback *,
archive_close_callback *);
==== //depot/projects/soc2008/strauss_libarchive/libarchive/archive_write_set_format_zip.c#4 (text+ko) ====
@@ -36,7 +36,6 @@
#include "archive_private.h"
#include "archive_write_private.h"
-int archive_write_set_format_zip(struct archive *);
static ssize_t archive_write_zip_data(struct archive_write *, const void *buff, size_t s);
static int archive_write_zip_finish(struct archive_write *);
static int archive_write_zip_destroy(struct archive_write *);
@@ -171,12 +170,14 @@
archive_write_zip_finish_entry(struct archive_write *a)
{
/* TODO: Write data descriptor. */
+ return 0;
}
static int
archive_write_zip_finish(struct archive_write *a)
{
/* TODO: Write central directory. */
+ return 0;
}
static int
@@ -200,4 +201,4 @@
*p = (value >>= i) & 0xff;
p++;
}
-}+}
More information about the p4-projects
mailing list