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>
2 files changed