summaryrefslogtreecommitdiff
path: root/src/common/endianness.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-10-17 22:55:35 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-10-17 22:55:35 (GMT)
commit2cfb66fcd5e8293d1dd689691bdc8c3517dd183a (patch)
treefd4536a69473c5c4d8204d052813f764286ea0ab /src/common/endianness.h
parentaf29afcc9a37113e4187b1c0a20e3bf5e2dcd4d9 (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.h')
-rwxr-xr-xsrc/common/endianness.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/common/endianness.h b/src/common/endianness.h
index a6bf582..c39d702 100755
--- a/src/common/endianness.h
+++ b/src/common/endianness.h
@@ -36,8 +36,8 @@
typedef enum _SourceEndian
{
SRE_LITTLE, /* Petits boutistes */
- SRE_BIG, /* Gros boutistes */
- SRE_MIDDLE /* Moyens boutistes */
+ SRE_MIDDLE, /* Moyens boutistes */
+ SRE_BIG /* Gros boutistes */
} SourceEndian;
@@ -65,7 +65,6 @@ bool read_u64(uint64_t *, const bin_t *, off_t *, off_t, SourceEndian);
#define read_s64(target, data, pos, len, endian) read_u64((uint64_t *)target, data, pos, len, endian)
-
/* Ecrit un nombre non signé sur n octets. */
bool _write_un(const bin_t *, size_t, bin_t *, off_t *, off_t, SourceEndian);
@@ -89,14 +88,9 @@ bool _write_un(const bin_t *, size_t, bin_t *, off_t *, off_t, SourceEndian);
#define write_s64(value, data, pos, len, endian) write_un(value, data, pos, len, endian, sint64_t)
-
-
-
/* Lit un nombre hexadécimal non signé sur deux octets. */
bool strtou8(uint8_t *, const char *, size_t *, size_t, SourceEndian);
-
-
/* Lit un nombre hexadécimal non signé sur n octets. */
bool _strtoun(uint8_t, const char *, size_t *, size_t, SourceEndian, ...);