]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/libsystemd/sd-netlink/netlink-message.c
sd-netlink: don't treat NULL as root type-system
authorDavid Herrmann <dh.herrmann@gmail.com>
Tue, 23 Jun 2015 10:10:38 +0000 (12:10 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Wed, 24 Jun 2015 11:46:11 +0000 (13:46 +0200)
commit846a6b3d89aaf4ee2cece0f10148f675c4796841
tree4a732c8e281a9dcc58691d4db9008c011c920242
parente7de105cf67dc8e4936043c4093c7b4119c9fc55
sd-netlink: don't treat NULL as root type-system

Explicitly export the root type-system to the type-system callers. This
avoids treating NULL as root, which for one really looks backwards (NULL
is usually a leaf, not root), and secondly prevents us from properly
debugging calling into non-nested types.

Also rename the root to "type_system_root". Once we support more than
rtnl, well will have to revisit that, anyway.
src/libsystemd/sd-netlink/netlink-message.c
src/libsystemd/sd-netlink/netlink-socket.c
src/libsystemd/sd-netlink/netlink-types.c
src/libsystemd/sd-netlink/netlink-types.h