From 980dbf59b6b864d90eee122936a4c8ec484f948d Mon Sep 17 00:00:00 2001 From: Bhavna Sharma Date: Tue, 2 Apr 2019 14:20:36 -0700 Subject: 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 --- utils/loc_gps.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/loc_gps.h') 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 */ -- cgit v1.2.3