]> granicus.if.org Git - file/commitdiff
works on be-64 now.
authorChristos Zoulas <christos@zoulas.com>
Sun, 12 Oct 2008 21:09:58 +0000 (21:09 +0000)
committerChristos Zoulas <christos@zoulas.com>
Sun, 12 Oct 2008 21:09:58 +0000 (21:09 +0000)
src/cdf.c
src/cdf.h

index ca3876b56a26c1bab244b8de6f2e1723bb343e49..6f23627cd21288118c62ff877f006ceae83dda0e 100644 (file)
--- a/src/cdf.c
+++ b/src/cdf.c
@@ -284,8 +284,8 @@ cdf_read_sat(int fd, cdf_header_t *h, cdf_sat_t *sat)
                }
                for (k = 0; k < (ss / sizeof(mid)) - 1; k++, i++)
                        if (cdf_read_sector(fd, sat->sat_tab, ss * i, ss, h,
-                           msa[k]) != (ssize_t)ss) {
-                               warnx("Reading sector %d", msa[k]);
+                           CDF_TOLE4(msa[k])) != (ssize_t)ss) {
+                               warnx("Reading sector %d", CDF_TOLE4(msa[k]));
                                free(sat->sat_tab);
                                free(msa);
                                return -1;
@@ -830,10 +830,10 @@ cdf_dump_summary_info(const cdf_header_t *h, const cdf_stream_t *sst)
        char buf[128];
        cdf_summary_info_header_t ssi;
        cdf_property_info_t *info;
-       size_t i, count;
+       size_t count;
 
        (void)&h;
-       if (cdf_unpack_summary_info(h, sst, &ssi, &info, &count) == -1)
+       if (cdf_unpack_summary_info(sst, &ssi, &info, &count) == -1)
                return;
        printf("Endian: %x\n", ssi.si_byte_order);
        printf("Os Version %d.%d\n", ssi.si_os_version & 0xff,
index 41799599354e01436c7bded1e6ec7a830256852a..b8f1660f8595310d545fc76f4e30b237a88483a5 100644 (file)
--- a/src/cdf.h
+++ b/src/cdf.h
@@ -232,7 +232,7 @@ void cdf_dump_sat(const char *, const cdf_header_t *, const cdf_sat_t *);
 void cdf_dump(void *, size_t);
 void cdf_dump_stream(const cdf_header_t *, const cdf_stream_t *);
 void cdf_dump_dir(int, const cdf_header_t *, const cdf_sat_t *, const cdf_dir_t *);
-void cdf_dump_property_info(const cdf_property_info_t *, uint32_t);
+void cdf_dump_property_info(const cdf_property_info_t *, size_t);
 void cdf_dump_summary_info(const cdf_header_t *, const cdf_stream_t *);
 #endif