diff options
author | Bhavna Sharma <sbhavna@codeaurora.org> | 2019-04-02 14:20:36 -0700 |
---|---|---|
committer | Bhavna Sharma <sbhavna@codeaurora.org> | 2019-06-06 13:23:56 -0700 |
commit | 980dbf59b6b864d90eee122936a4c8ec484f948d (patch) | |
tree | 8cf0653a5c8a9a8df907fa55cecba09e8d0d0c34 /utils/loc_gps.h | |
parent | 9fc8d7444d5f68d3978973dacf7618293f1fd4cd (diff) | |
download | gps-980dbf59b6b864d90eee122936a4c8ec484f948d.tar.gz |
Fix to use explicit sized structures
Cross processor communication needs explicit sized structures.
Avoid using platform defined values like size_t which may
vary from 32-bit to 64-bit.
Also use explicitly defined timespec32_t structure that will
only use uint32_t fields.
CRs-Fixed: 2428163
Change-Id: Ida72f53ac672d9c9b86879bb9861cecefe6f8c6d
Diffstat (limited to 'utils/loc_gps.h')
-rw-r--r-- | utils/loc_gps.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/loc_gps.h b/utils/loc_gps.h index b58f20b..eae7383 100644 --- a/utils/loc_gps.h +++ b/utils/loc_gps.h @@ -548,7 +548,7 @@ typedef uint8_t LocGnssConstellationType; /** Represents a location. */ typedef struct { /** set to sizeof(LocGpsLocation) */ - size_t size; + uint32_t size; /** Contains LocGpsLocationFlags bits. */ uint16_t flags; /** The spoof mask */ |