summaryrefslogtreecommitdiff
path: root/shared
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 /shared
parentd165787b54eb0d3577fe20be174c9e67901ed53a (diff)
downloadNetworkManager-de62da297e506b1c5ad9b7dcc9132c681d089efe.tar.gz
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 'shared')
-rw-r--r--shared/nm-libnm-core-intern/nm-auth-subject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared/nm-libnm-core-intern/nm-auth-subject.c b/shared/nm-libnm-core-intern/nm-auth-subject.c
index 96bc6b0887..7d864e31a3 100644
--- a/shared/nm-libnm-core-intern/nm-auth-subject.c
+++ b/shared/nm-libnm-core-intern/nm-auth-subject.c
@@ -231,7 +231,7 @@ nm_auth_subject_new_unix_process_self (void)
static void
get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
{
- NMAuthSubjectPrivate *priv = NM_AUTH_SUBJECT_GET_PRIVATE ((NMAuthSubject *) object);
+ NMAuthSubjectPrivate *priv = NM_AUTH_SUBJECT_GET_PRIVATE (object);
switch (prop_id) {
case PROP_SUBJECT_TYPE:
@@ -258,7 +258,7 @@ get_property (GObject *object, guint prop_id, GValue *value, GParamSpec *pspec)
static void
set_property (GObject *object, guint prop_id, const GValue *value, GParamSpec *pspec)
{
- NMAuthSubjectPrivate *priv = NM_AUTH_SUBJECT_GET_PRIVATE ((NMAuthSubject *) object);
+ NMAuthSubjectPrivate *priv = NM_AUTH_SUBJECT_GET_PRIVATE (object);
NMAuthSubjectType subject_type;
int i;
const char *str;