diff options
author | Thomas Haller <thaller@redhat.com> | 2020-02-14 10:50:25 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-02-14 11:04:46 +0100 |
commit | de62da297e506b1c5ad9b7dcc9132c681d089efe (patch) | |
tree | 7fb2357eb790bfeed23ef653955e76f5ca85e95e /src/supplicant/nm-supplicant-config.c | |
parent | d165787b54eb0d3577fe20be174c9e67901ed53a (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/supplicant/nm-supplicant-config.c')
-rw-r--r-- | src/supplicant/nm-supplicant-config.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/supplicant/nm-supplicant-config.c b/src/supplicant/nm-supplicant-config.c index 403b50edb2..2e16f278e1 100644 --- a/src/supplicant/nm-supplicant-config.c +++ b/src/supplicant/nm-supplicant-config.c @@ -256,7 +256,7 @@ nm_supplicant_config_add_blob_for_connection (NMSupplicantConfig *self, static void nm_supplicant_config_finalize (GObject *object) { - NMSupplicantConfigPrivate *priv = NM_SUPPLICANT_CONFIG_GET_PRIVATE ((NMSupplicantConfig *) object); + NMSupplicantConfigPrivate *priv = NM_SUPPLICANT_CONFIG_GET_PRIVATE (object); g_hash_table_destroy (priv->config); g_hash_table_destroy (priv->blobs); |