summaryrefslogtreecommitdiff
path: root/src/dhcp/nm-dhcp-dhclient.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-02-14 10:50:25 +0100
committerThomas Haller <thaller@redhat.com>2020-02-14 11:04:46 +0100
commitde62da297e506b1c5ad9b7dcc9132c681d089efe (patch)
tree7fb2357eb790bfeed23ef653955e76f5ca85e95e /src/dhcp/nm-dhcp-dhclient.c
parentd165787b54eb0d3577fe20be174c9e67901ed53a (diff)
all: drop explicit casts from _GET_PRIVATE() macro calls
The _GET_PRIVATE() macros are all implemented based on _NM_GET_PRIVATE(). That macro tries to be more type safe and uses _Generic() to do the right thing. Explicitly casting is not only unnecessary, it defeats these (static) type checks. Don't do that.
Diffstat (limited to 'src/dhcp/nm-dhcp-dhclient.c')
-rw-r--r--src/dhcp/nm-dhcp-dhclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dhcp/nm-dhcp-dhclient.c b/src/dhcp/nm-dhcp-dhclient.c
index 869966fba2..617ce2366f 100644
--- a/src/dhcp/nm-dhcp-dhclient.c
+++ b/src/dhcp/nm-dhcp-dhclient.c
@@ -665,7 +665,7 @@ nm_dhcp_dhclient_init (NMDhcpDhclient *self)
static void
dispose (GObject *object)
{
- NMDhcpDhclientPrivate *priv = NM_DHCP_DHCLIENT_GET_PRIVATE ((NMDhcpDhclient *) object);
+ NMDhcpDhclientPrivate *priv = NM_DHCP_DHCLIENT_GET_PRIVATE (object);
if (priv->dhcp_listener) {
g_signal_handlers_disconnect_by_func (priv->dhcp_listener,