summaryrefslogtreecommitdiff
path: root/src/common/endianness.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/endianness.c')
-rwxr-xr-xsrc/common/endianness.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/common/endianness.c b/src/common/endianness.c
index 202262a..17ee252 100755
--- a/src/common/endianness.c
+++ b/src/common/endianness.c
@@ -45,7 +45,7 @@
* *
******************************************************************************/
-bool read_u8(uint8_t *target, const uint8_t *data, off_t *pos, off_t len, SourceEndian endian)
+bool read_u8(uint8_t *target, const bin_t *data, off_t *pos, off_t len, SourceEndian endian)
{
if ((len - *pos) < 1) return false;
@@ -74,7 +74,7 @@ bool read_u8(uint8_t *target, const uint8_t *data, off_t *pos, off_t len, Source
* *
******************************************************************************/
-bool read_u16(uint16_t *target, const uint8_t *data, off_t *pos, off_t len, SourceEndian endian)
+bool read_u16(uint16_t *target, const bin_t *data, off_t *pos, off_t len, SourceEndian endian)
{
if ((len - *pos) < 2) return false;
@@ -127,7 +127,7 @@ bool read_u16(uint16_t *target, const uint8_t *data, off_t *pos, off_t len, Sour
* *
******************************************************************************/
-bool read_u32(uint32_t *target, const uint8_t *data, off_t *pos, off_t len, SourceEndian endian)
+bool read_u32(uint32_t *target, const bin_t *data, off_t *pos, off_t len, SourceEndian endian)
{
if ((len - *pos) < 4) return false;