commit | c21498e56ffd9e71d44fb308e8af36fecaffd762 | [log] [tgz] |
---|---|---|
author | Alex Khouderchah <akhouderchah@chromium.org> | Mon Feb 10 20:19:02 2020 |
committer | Commit Bot <commit-bot@chromium.org> | Thu Feb 13 17:44:18 2020 |
tree | a0248c7d961d290072590870fb3f291fef6130ee | |
parent | e5cc28a8bec257bc82e1936b075aab7b8c468c29 [diff] |
FROMLIST: Use size_t for offsets Currently, offsetof produces an unsigned long, while qmi_elem_info's offset member is a uint32_t. Since this is not the same type on all platforms, this change uses a size_t for both. stddef.h is also included for the standard offsetof definition, which also produces a size_t. This change also makes similar modifications to list.h. This CL comes from: https://github.com/andersson/qrtr/pull/16 BUG=chromium:1044324 TEST=tryjob Change-Id: I1fde38b4dcad3556ab0ba25f93a534b7997d4277 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/libqrtr/+/2047827 Tested-by: Alex Khouderchah <akhouderchah@chromium.org> Reviewed-by: Eric Caruso <ejcaruso@chromium.org> Commit-Queue: Alex Khouderchah <akhouderchah@chromium.org>