diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2014-01-29 14:36:06 +0200 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-01-29 09:05:30 -0800 |
commit | 4e6071ffe3ed601a31527490003ca726ce03b57d (patch) | |
tree | d459949a576c36b1a2816df2b8af114b94606dc3 /android/avctp.c | |
parent | 0429c69f6a9982f627e4a27d1c834dcc51e34ba6 (diff) | |
download | bluez-4e6071ffe3ed601a31527490003ca726ce03b57d.tar.gz |
android/avctp: Move AVC_HEADER_LENGTH from avctp header
There is currently inconsistence in the avctp code with
AVC_HEADER_LENGTH defined in avctp.h but AVCTP_HEADER_LENGTH defined in
avctp.c. Move definition to place it is actually used in consistent way.
Diffstat (limited to 'android/avctp.c')
-rw-r--r-- | android/avctp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/android/avctp.c b/android/avctp.c index d308ec168..8f3540342 100644 --- a/android/avctp.c +++ b/android/avctp.c @@ -84,6 +84,7 @@ struct avc_header { uint8_t subunit_type:5; uint8_t opcode; } __attribute__ ((packed)); +#define AVC_HEADER_LENGTH 3 #elif __BYTE_ORDER == __BIG_ENDIAN @@ -103,6 +104,7 @@ struct avc_header { uint8_t subunit_id:3; uint8_t opcode; } __attribute__ ((packed)); +#define AVC_HEADER_LENGTH 3 #else #error "Unknown byte order" |