summaryrefslogtreecommitdiff
path: root/src/nm-ip6-config.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-09-05 16:55:07 +0200
committerThomas Haller <thaller@redhat.com>2016-09-08 00:21:21 +0200
commitcdf6ad40572f23be6f8b6971bd57b1002ffb9aaf (patch)
treed78eb022f0cd9499691b7274022be90fc6f51a37 /src/nm-ip6-config.c
parent2cae9ba348ed6ea4d41ebd714d8c55f4d49feae9 (diff)
downloadNetworkManager-cdf6ad40572f23be6f8b6971bd57b1002ffb9aaf.tar.gz
core: use _NM_GET_PRIVATE() macros
Diffstat (limited to 'src/nm-ip6-config.c')
-rw-r--r--src/nm-ip6-config.c13
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,