summaryrefslogtreecommitdiff
path: root/src/common/endianness.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-01-23 18:38:22 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-01-23 18:38:22 (GMT)
commit66c99d59d6a6d533de0bb65488de8243213bcdea (patch)
tree02d86b67c16cb1036c7e8540933eb1a5b4c9d030 /src/common/endianness.h
parentadb98feb93f09d8de343c504a0c8c72815d62dab (diff)
Used phys_t types instead of off_t types to remove compilation warnings.
Diffstat (limited to 'src/common/endianness.h')
-rwxr-xr-xsrc/common/endianness.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/common/endianness.h b/src/common/endianness.h
index 2764f66..07c1b76 100755
--- a/src/common/endianness.h
+++ b/src/common/endianness.h
@@ -29,6 +29,7 @@
#include "../arch/archbase.h"
+#include "../arch/vmpa.h"
@@ -43,19 +44,19 @@ typedef enum _SourceEndian
/* Lit un nombre non signé sur 4 bits. */
-bool read_u4(uint8_t *, const bin_t *, off_t *, off_t, bool *);
+bool read_u4(uint8_t *, const bin_t *, phys_t *, phys_t, bool *);
/* Lit un nombre non signé sur un octet. */
-bool read_u8(uint8_t *, const bin_t *, off_t *, off_t);
+bool read_u8(uint8_t *, const bin_t *, phys_t *, phys_t);
/* Lit un nombre non signé sur deux octets. */
-bool read_u16(uint16_t *, const bin_t *, off_t *, off_t, SourceEndian);
+bool read_u16(uint16_t *, const bin_t *, phys_t *, phys_t, SourceEndian);
/* Lit un nombre non signé sur quatre octets. */
-bool read_u32(uint32_t *, const bin_t *, off_t *, off_t, SourceEndian);
+bool read_u32(uint32_t *, const bin_t *, phys_t *, phys_t, SourceEndian);
/* Lit un nombre non signé sur huit octets. */
-bool read_u64(uint64_t *, const bin_t *, off_t *, off_t, SourceEndian);
+bool read_u64(uint64_t *, const bin_t *, phys_t *, phys_t, SourceEndian);
#define read_s4(target, data, pos, len, low) read_u4((uint8_t *)target, data, pos, len, low)