diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2015-06-23 10:51:25 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2015-06-24 13:45:47 +0200 |
commit | c658008f50fdbc617e6f7ad321c058f3a6f175f5 (patch) | |
tree | c2fb5229335daa4dadbbd0c8faf541e862418934 /test/b.service | |
parent | cafbc790d1affec2c9524c5ee1915485a1ac6879 (diff) |
sd-netlink: don't access type->type_system[_union] directly
Make sure we never access type->type_system or type->type_system_union
directly. This is an implementation detail of the type-system and we
should always use the accessors. Right now, they only exist for 2-level
accesses (type-system to type-system). This patch introduces the 1-level
accessors (type to type-system) and makes use of it.
This patch makes sure the proper assertions are in place, so we never
accidentally access sub-type-systems for non-nested/union types.
Note that this places hard-asserts on the accessors. This should be fine,
as we expect callers to only access sub type-systems if they *know*
they're dealing with nested types.
Diffstat (limited to 'test/b.service')
0 files changed, 0 insertions, 0 deletions