diff options
author | Thomas Haller <thaller@redhat.com> | 2016-09-05 16:55:07 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2016-09-08 00:21:21 +0200 |
commit | cdf6ad40572f23be6f8b6971bd57b1002ffb9aaf (patch) | |
tree | d78eb022f0cd9499691b7274022be90fc6f51a37 /src/nm-ip6-config.c | |
parent | 2cae9ba348ed6ea4d41ebd714d8c55f4d49feae9 (diff) | |
download | NetworkManager-cdf6ad40572f23be6f8b6971bd57b1002ffb9aaf.tar.gz |
core: use _NM_GET_PRIVATE() macros
Diffstat (limited to 'src/nm-ip6-config.c')
-rw-r--r-- | src/nm-ip6-config.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/nm-ip6-config.c b/src/nm-ip6-config.c index ac9e6cd130..8002d61a0a 100644 --- a/src/nm-ip6-config.c +++ b/src/nm-ip6-config.c @@ -61,18 +61,7 @@ struct _NMIP6ConfigClass { G_DEFINE_TYPE (NMIP6Config, nm_ip6_config, NM_TYPE_EXPORTED_OBJECT) -#define NM_IP6_CONFIG_GET_PRIVATE(self) \ - ({ \ - /* preserve the const-ness of self. Unfortunately, that - * way, @self cannot be a void pointer */ \ - typeof (self) _self = (self); \ - \ - /* Get compiler error if variable is of wrong type */ \ - _nm_unused const NMIP6Config *_self2 = (_self); \ - \ - nm_assert (NM_IS_IP6_CONFIG (_self)); \ - &_self->_priv; \ - }) +#define NM_IP6_CONFIG_GET_PRIVATE(self) _NM_GET_PRIVATE(self, NMIP6Config, NM_IS_IP6_CONFIG) NM_GOBJECT_PROPERTIES_DEFINE (NMIP6Config, PROP_IFINDEX, |