From: Christos Zoulas Date: Sun, 12 Oct 2008 21:09:58 +0000 (+0000) Subject: works on be-64 now. X-Git-Tag: FILE5_05~312 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20243ecf7cbb763fe776c20f1ba12d485da9bada;p=file works on be-64 now. --- diff --git a/src/cdf.c b/src/cdf.c index ca3876b5..6f23627c 100644 --- 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, diff --git a/src/cdf.h b/src/cdf.h index 41799599..b8f1660f 100644 --- 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