diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-10-17 22:55:35 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-10-17 22:55:35 (GMT) |
commit | 2cfb66fcd5e8293d1dd689691bdc8c3517dd183a (patch) | |
tree | fd4536a69473c5c4d8204d052813f764286ea0ab /src/common/endianness.c | |
parent | af29afcc9a37113e4187b1c0a20e3bf5e2dcd4d9 (diff) |
Fixed other gcc warnings.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@273 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/common/endianness.c')
-rwxr-xr-x | src/common/endianness.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/src/common/endianness.c b/src/common/endianness.c index 072b767..46a3be2 100755 --- a/src/common/endianness.c +++ b/src/common/endianness.c @@ -139,8 +139,9 @@ bool read_u16(uint16_t *target, const bin_t *data, off_t *pos, off_t len, Source break; - - + case SRE_MIDDLE: + /* TODO */ + break; case SRE_BIG: @@ -213,6 +214,10 @@ bool read_u32(uint32_t *target, const bin_t *data, off_t *pos, off_t len, Source break; + case SRE_MIDDLE: + /* TODO */ + break; + case SRE_BIG: #if __BYTE_ORDER == __LITTLE_ENDIAN @@ -290,6 +295,10 @@ bool read_u64(uint64_t *target, const bin_t *data, off_t *pos, off_t len, Source break; + case SRE_MIDDLE: + /* TODO */ + break; + case SRE_BIG: #if __BYTE_ORDER == __LITTLE_ENDIAN @@ -324,11 +333,6 @@ bool read_u64(uint64_t *target, const bin_t *data, off_t *pos, off_t len, Source } - - - - - /****************************************************************************** * * * Paramètres : value = source de la valeur à transcrire. * @@ -406,12 +410,6 @@ bool _write_un(const bin_t *value, size_t size, bin_t *data, off_t *pos, off_t l } - - - - - - /****************************************************************************** * * * Paramètres : target = lieu d'enregistrement de la lecture. [OUT] * @@ -461,7 +459,6 @@ bool strtou8(uint8_t *target, const char *data, size_t *pos, size_t len, SourceE } - /****************************************************************************** * * * Paramètres : n = nombre d'octets constituant le nombre à lire. * @@ -551,7 +548,6 @@ bool _strtoun(uint8_t n, const char *data, size_t *pos, size_t len, SourceEndian break; default: - printf(" string :: '%s'\n", &data[*pos + j]); result = false; break; @@ -579,6 +575,10 @@ bool _strtoun(uint8_t n, const char *data, size_t *pos, size_t len, SourceEndian break; + case SRE_MIDDLE: + /* TODO */ + break; + case SRE_BIG: #if __BYTE_ORDER == __LITTLE_ENDIAN |