]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Missing casts.
authorTim Kientzle <kientzle@gmail.com>
Mon, 9 Feb 2009 06:10:49 +0000 (01:10 -0500)
committerTim Kientzle <kientzle@gmail.com>
Mon, 9 Feb 2009 06:10:49 +0000 (01:10 -0500)
SVN-Revision: 595

libarchive/test/main.c

index badbea86ae425e92c768a8dfe645fc1f560a1bd6..13fd5f444551d4445b8967f7b70a0fcfbed478b6 100644 (file)
@@ -347,10 +347,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);
 }
@@ -425,7 +425,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", (unsigned)(i + offset));
                sep = ' ';
                for (j = 0; j < 16 && i + j < l; j++) {
                        if (ref != NULL && p[i + j] != ref[i + j])