sd-netlink: rename variables and functions for generic netlink
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Jun 2021 18:00:42 +0000 (03:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 26 Jun 2021 18:02:22 +0000 (03:02 +0900)
commit0f97cfb9bee009a95ac4af609d466d86d094779d
tree0af67f00e511cc49ee12669b016539c236816912
parenteee15fff4005c3a7c7dffba8776a96c050464b1a
sd-netlink: rename variables and functions for generic netlink

`id` or `type` is ambiguous. Let's use `nlmsg_type`. Also, use `ret` for
function arguments to store results.

This also adds several assertions.
src/libsystemd/sd-netlink/generic-netlink.c
src/systemd/sd-netlink.h