]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
IFC
authorTim Kientzle <kientzle@gmail.com>
Sun, 9 Nov 2008 20:04:07 +0000 (15:04 -0500)
committerTim Kientzle <kientzle@gmail.com>
Sun, 9 Nov 2008 20:04:07 +0000 (15:04 -0500)
SVN-Revision: 246

libarchive/archive_write.3
tar/Makefile
tar/bsdtar.1
tar/bsdtar.c
tar/bsdtar.h
tar/config_freebsd.h
tar/test/main.c

index 14003f43c3678112738d94ad8b7c4b84f732068c..f7c5fa0dbb95cb50207c84526b3b4e7f630e6d13 100644 (file)
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/lib/libarchive/archive_write.3,v 1.24 2008/05/26 17:00:23 kientzle Exp $
+.\" $FreeBSD: src/lib/libarchive/archive_write.3,v 1.25 2008/11/01 19:11:21 kientzle Exp $
 .\"
 .Dd May 11, 2008
 .Dt archive_write 3
@@ -342,7 +342,7 @@ to register an error code and message and return
 .Fo archive_write_callback
 .Fa "struct archive *"
 .Fa "void *client_data"
-.Fa "void *buffer"
+.Fa "const void *buffer"
 .Fa "size_t length"
 .Fc
 .El
@@ -410,7 +410,7 @@ myopen(struct archive *a, void *client_data)
 }
 
 ssize_t
-mywrite(struct archive *a, void *client_data, void *buff, size_t n)
+mywrite(struct archive *a, void *client_data, const void *buff, size_t n)
 {
   struct mydata *mydata = client_data;
 
index b8c88a5d63e47c04178435a0410315055a753610..fc10ab100763c8a9ee07c9a8f9c1a9d5344b8234 100644 (file)
@@ -1,4 +1,4 @@
-# $FreeBSD: src/usr.bin/tar/Makefile,v 1.38 2008/08/22 01:31:13 kientzle Exp $
+# $FreeBSD: src/usr.bin/tar/Makefile,v 1.39 2008/11/08 04:43:24 kientzle Exp $
 
 PROG=  bsdtar
 BSDTAR_VERSION_STRING=2.5.902a
@@ -11,6 +11,7 @@ CFLAGS+=      -DPLATFORM_CONFIG_H=\"config_freebsd.h\"
 CFLAGS+=       -I${.CURDIR}
 SYMLINKS=      bsdtar ${BINDIR}/tar
 MLINKS=        bsdtar.1 tar.1
+DEBUG_FLAGS=-g
 
 .PHONY: check test
 check test: $(PROG) bsdtar.1.gz
index 6a387a4014c3497536777a85078b97869242d351..1859c12409d073abab8e82039161904e46a67e8b 100644 (file)
@@ -22,7 +22,7 @@
 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 .\" SUCH DAMAGE.
 .\"
-.\" $FreeBSD: src/usr.bin/tar/bsdtar.1,v 1.44 2008/07/26 17:22:40 simon Exp $
+.\" $FreeBSD: src/usr.bin/tar/bsdtar.1,v 1.45 2008/11/08 04:43:24 kientzle Exp $
 .\"
 .Dd May 15, 2008
 .Dt BSDTAR 1
@@ -346,7 +346,7 @@ For every block on disk, check first if it contains only NULL bytes and seek
 over it otherwise.
 This works similiar to the conv=sparse option of dd.
 .It Fl -strip-components Ar count
-(x and t mode only)
+(x mode only)
 Remove the specified number of leading path elements.
 Pathnames with fewer elements will be silently skipped.
 Note that the pathname is edited after checking inclusion/exclusion patterns
index 2f2e1048bf874a9d4c2785ab961afa505b2ac9e4..33a044baa796c71a6b69f138e4237d79570cb996 100644 (file)
@@ -24,7 +24,7 @@
  */
 
 #include "bsdtar_platform.h"
-__FBSDID("$FreeBSD: src/usr.bin/tar/bsdtar.c,v 1.92 2008/08/22 01:22:55 kientzle Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/tar/bsdtar.c,v 1.93 2008/11/08 04:43:24 kientzle Exp $");
 
 #ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
index d3bf854cf2c4c8044f70a14cb2ddf670f0b8be66..04a4c2eef84ecaacf91611b56368a4c38a7be161 100644 (file)
@@ -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.
  *
- * $FreeBSD: src/usr.bin/tar/bsdtar.h,v 1.35 2008/08/04 01:25:48 cperciva Exp $
+ * $FreeBSD: src/usr.bin/tar/bsdtar.h,v 1.36 2008/11/08 04:43:24 kientzle Exp $
  */
 
 #include "bsdtar_platform.h"
index 4686cd834e6a40b3f1817e96039b94ec13a4f387..ee6f8a184a7b2b31cf35e8ccff1529ce56c4328f 100644 (file)
@@ -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.
  *
- * $FreeBSD: src/usr.bin/tar/config_freebsd.h,v 1.6 2008/09/14 03:49:00 kientzle Exp $
+ * $FreeBSD: src/usr.bin/tar/config_freebsd.h,v 1.7 2008/11/08 04:43:24 kientzle Exp $
  */
 
 /* A default configuration for FreeBSD, used if there is no config.h. */
index 5549d885c0a564361173202b2b77ed688e12d142..2a29ca0923870c92e3f58bac92e57ed91249c7a3 100644 (file)
@@ -44,7 +44,7 @@
 #undef EXTRA_DUMP           /* How to dump extra data */
 /* How to generate extra version info. */
 #define        EXTRA_VERSION    (systemf("%s --version", testprog) ? "" : "")
-__FBSDID("$FreeBSD: src/usr.bin/tar/test/main.c,v 1.4 2008/08/21 07:04:57 kientzle Exp $");
+__FBSDID("$FreeBSD: src/usr.bin/tar/test/main.c,v 1.6 2008/11/05 06:40:53 kientzle Exp $");
 
 /*
  * "list.h" is simply created by "grep DEFINE_TEST"; it has
@@ -324,10 +324,10 @@ test_assert_equal_string(const char *file, int line,
            file, line);
        fprintf(stderr, "      %s = ", e1);
        strdump(v1);
-       fprintf(stderr, " (length %d)\n", v1 == NULL ? 0 : strlen(v1));
+       fprintf(stderr, " (length %d)\n", v1 == NULL ? 0 : (int)strlen(v1));
        fprintf(stderr, "      %s = ", e2);
        strdump(v2);
-       fprintf(stderr, " (length %d)\n", v2 == NULL ? 0 : strlen(v2));
+       fprintf(stderr, " (length %d)\n", v2 == NULL ? 0 : (int)strlen(v2));
        report_failure(extra);
        return (0);
 }
@@ -402,7 +402,7 @@ hexdump(const char *p, const char *ref, size_t l, size_t offset)
        char sep;
 
        for(i=0; i < l; i+=16) {
-               fprintf(stderr, "%04x", i + offset);
+               fprintf(stderr, "%04x", (int)(i + offset));
                sep = ' ';
                for (j = 0; j < 16 && i + j < l; j++) {
                        if (ref != NULL && p[i + j] != ref[i + j])
@@ -494,7 +494,8 @@ test_assert_empty_file(const char *f1fmt, ...)
        if (fd < 0) {
                fprintf(stderr, "    Unable to open %s\n", f1);
        } else {
-               s = sizeof(buff) < st.st_size ? sizeof(buff) : st.st_size;
+               s = ((off_t)sizeof(buff) < st.st_size) ?
+                   (ssize_t)sizeof(buff) : (ssize_t)st.st_size;
                s = read(fd, buff, s);
                hexdump(buff, NULL, s, 0);
        }