Convert bpf_update_stats to use type safe accessors
Unfortunately no way to do this in C without another macro.
Note: this doesn't result in any more code being generated, since
these were already being inlined at every invocation point, so the
code duplication is only at the source level, and even there it
is hidden behind the macro.
Test: atest libbpf_android_test libnetdbpf_test netd_integration_test netd_unit_test netdutils_test resolv_integration_test resolv_unit_test
Bug: 130746652
Bug: 131268436
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: Idcd903290fd36ac02d5fb6d98fe5bb809d4ec415
Merged-In: Idcd903290fd36ac02d5fb6d98fe5bb809d4ec415
(cherry picked from commit 0f24d32353a28a1ca0eb3940320e2d01051f7c32)
2 files changed