diff options
author | Etienne Le Grand <etn@google.com> | 2014-04-05 04:46:55 +0000 |
---|---|---|
committer | Etienne Le Grand <etn@google.com> | 2014-04-05 04:46:55 +0000 |
commit | ea676f9ae6757018110532f424fa15df6704be0e (patch) | |
tree | b360549535165a8fbade89737547e3470b8d07c9 | |
parent | 4db220ec857c9166843a8d6fae9b52666c177168 (diff) | |
download | hardware_libhardware-ea676f9ae6757018110532f424fa15df6704be0e.zip hardware_libhardware-ea676f9ae6757018110532f424fa15df6704be0e.tar.gz hardware_libhardware-ea676f9ae6757018110532f424fa15df6704be0e.tar.bz2 |
Revert "Remove offset checks for reserved fields in sensor_t and sensors_event_t."
This reverts commit 4db220ec857c9166843a8d6fae9b52666c177168.
Change-Id: I61feb99c2024889e29e2b300ad4a4f5af1fdc282
-rw-r--r-- | tests/hardware/struct-offset.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/hardware/struct-offset.cpp b/tests/hardware/struct-offset.cpp index bdb1fad..0a1338a 100644 --- a/tests/hardware/struct-offset.cpp +++ b/tests/hardware/struct-offset.cpp @@ -88,6 +88,7 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(sensors_event_t, u64, 24, 24); CHECK_MEMBER_AT(sensors_event_t, u64.data, 24, 24); CHECK_MEMBER_AT(sensors_event_t, u64.step_counter, 24, 24); + CHECK_MEMBER_AT(sensors_event_t, reserved1, 88, 88); CHECK_MEMBER_AT(struct sensor_t, name, 0, 0); CHECK_MEMBER_AT(struct sensor_t, vendor, 4, 8); @@ -100,6 +101,7 @@ void CheckOffsets(void) { CHECK_MEMBER_AT(struct sensor_t, minDelay, 32, 40); CHECK_MEMBER_AT(struct sensor_t, fifoReservedEventCount, 36, 44); CHECK_MEMBER_AT(struct sensor_t, fifoMaxEventCount, 40, 48); + CHECK_MEMBER_AT(struct sensor_t, reserved, 44, 56); CHECK_MEMBER_AT(sensors_poll_device_1_t, v0, 0, 0); CHECK_MEMBER_AT(sensors_poll_device_1_t, common, 0, 0); |