mbox series

[BlueZ,v2,0/2] Fix 32 bit Compiler Errors

Message ID 20210127182328.1542194-1-brian.gix@intel.com
Headers show
Series Fix 32 bit Compiler Errors | expand

Message

Brian Gix Jan. 27, 2021, 6:23 p.m. UTC
In a couple places the sizeof() macro has been assumed to return a
(long unsigned) value, and so the string formater %lu has been used to
print out warnings derived from this assumption. While correct on 64 bit
systems, this is an incorrect assumption on 32 bit systems.

These two changes explicitly cast the sizeof return to long in the
affected cases.

v2: Fix bluez.test.bot warnings



Brian Gix (2):
  advertising: Make data size explicit for formats
  tools/mgmt-tester: Make data size explicit for log

 src/advertising.c   | 2 +-
 tools/mgmt-tester.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)