From owner-cvs-all@FreeBSD.ORG Fri Nov 10 06:39:48 2006 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 125F116A407; Fri, 10 Nov 2006 06:39:48 +0000 (UTC) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A070043D46; Fri, 10 Nov 2006 06:39:47 +0000 (GMT) (envelope-from kientzle@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kAA6dlgO044383; Fri, 10 Nov 2006 06:39:47 GMT (envelope-from kientzle@repoman.freebsd.org) Received: (from kientzle@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kAA6dlu7044382; Fri, 10 Nov 2006 06:39:47 GMT (envelope-from kientzle) Message-Id: <200611100639.kAA6dlu7044382@repoman.freebsd.org> From: Tim Kientzle Date: Fri, 10 Nov 2006 06:39:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libarchive archive_check_magic.c archive_entry.c archive_platform.h archive_read.c archive_read_data_into_buffer.c archive_read_data_into_fd.c archive_read_extract.c archive_read_open_fd.c archive_read_open_file.c archive_read_support_compression_bzip2.c archive_read_support_compression_compress.c ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Nov 2006 06:39:48 -0000 kientzle 2006-11-10 06:39:47 UTC FreeBSD src repository Modified files: lib/libarchive archive_check_magic.c archive_entry.c archive_platform.h archive_read.c archive_read_data_into_buffer.c archive_read_data_into_fd.c archive_read_extract.c archive_read_open_fd.c archive_read_open_file.c archive_read_support_compression_bzip2.c archive_read_support_compression_compress.c archive_read_support_compression_gzip.c archive_read_support_compression_none.c archive_read_support_format_cpio.c archive_read_support_format_iso9660.c archive_read_support_format_tar.c archive_read_support_format_zip.c archive_string.c archive_string.h archive_util.c archive_write.c archive_write_open_fd.c archive_write_open_file.c archive_write_set_compression_bzip2.c archive_write_set_compression_gzip.c archive_write_set_compression_none.c archive_write_set_format.c archive_write_set_format_by_name.c archive_write_set_format_cpio.c archive_write_set_format_pax.c archive_write_set_format_shar.c archive_write_set_format_ustar.c Log: Portability and style fixes: * Actually use the HAVE_
_H macros to conditionally include system headers. They've been defined for a long time, but only used in a few places. Now they're used pretty consistently throughout. * Fill in a lot of missing casts for conversions from void*. Although Standard C doesn't require this, some people have been trying to use C++ compilers with this code, and they do require it. Bit-for-bit, the compiled object files are identical, except for one assert() whose line number changed, so I'm pretty confident I didn't break anything. ;-) Revision Changes Path 1.6 +9 -0 src/lib/libarchive/archive_check_magic.c 1.36 +26 -16 src/lib/libarchive/archive_entry.c 1.21 +16 -6 src/lib/libarchive/archive_platform.h 1.23 +11 -3 src/lib/libarchive/archive_read.c 1.5 +3 -1 src/lib/libarchive/archive_read_data_into_buffer.c 1.11 +6 -0 src/lib/libarchive/archive_read_data_into_fd.c 1.49 +26 -4 src/lib/libarchive/archive_read_extract.c 1.7 +16 -6 src/lib/libarchive/archive_read_open_fd.c 1.12 +18 -6 src/lib/libarchive/archive_read_open_file.c 1.10 +15 -7 src/lib/libarchive/archive_read_support_compression_bzip2.c 1.6 +16 -8 src/lib/libarchive/archive_read_support_compression_compress.c 1.11 +15 -7 src/lib/libarchive/archive_read_support_compression_gzip.c 1.10 +14 -6 src/lib/libarchive/archive_read_support_compression_none.c 1.19 +24 -14 src/lib/libarchive/archive_read_support_format_cpio.c 1.14 +20 -10 src/lib/libarchive/archive_read_support_format_iso9660.c 1.44 +39 -25 src/lib/libarchive/archive_read_support_format_tar.c 1.9 +21 -17 src/lib/libarchive/archive_read_support_format_zip.c 1.7 +5 -1 src/lib/libarchive/archive_string.c 1.7 +2 -0 src/lib/libarchive/archive_string.h 1.11 +6 -0 src/lib/libarchive/archive_util.c 1.20 +12 -2 src/lib/libarchive/archive_write.c 1.5 +14 -4 src/lib/libarchive/archive_write_open_fd.c 1.12 +17 -5 src/lib/libarchive/archive_write_open_file.c 1.9 +13 -5 src/lib/libarchive/archive_write_set_compression_bzip2.c 1.11 +13 -5 src/lib/libarchive/archive_write_set_compression_gzip.c 1.9 +10 -4 src/lib/libarchive/archive_write_set_compression_none.c 1.3 +5 -0 src/lib/libarchive/archive_write_set_format.c 1.4 +6 -0 src/lib/libarchive/archive_write_set_format_by_name.c 1.7 +15 -7 src/lib/libarchive/archive_write_set_format_cpio.c 1.35 +24 -10 src/lib/libarchive/archive_write_set_format_pax.c 1.12 +18 -10 src/lib/libarchive/archive_write_set_format_shar.c 1.15 +24 -14 src/lib/libarchive/archive_write_set_format_ustar.c