summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-06-07 14:32:20 +0200
committerThomas Haller <thaller@redhat.com>2020-06-19 17:07:19 +0200
commit4d6b96b48f2985bd8b0a1175a4411e23ed42eda0 (patch)
tree1ef4b0872560513b5dd079e8675fdfe76b547eca
parentd64eb7201ec1ac095827f8a8643b71d7f673495d (diff)
downloadNetworkManager-4d6b96b48f2985bd8b0a1175a4411e23ed42eda0.tar.gz
shared: make NMUtilsNamedValue.value_ptr non const
If the value pointer is const, it is commonly inconvenient and requires a cast. Requiring casts on a common base does not increase type safety, but is annoying.
-rw-r--r--shared/nm-glib-aux/nm-shared-utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-glib-aux/nm-shared-utils.h b/shared/nm-glib-aux/nm-shared-utils.h
index eeb8be5b7d..7d4611bff6 100644
--- a/shared/nm-glib-aux/nm-shared-utils.h
+++ b/shared/nm-glib-aux/nm-shared-utils.h
@@ -1446,7 +1446,7 @@ typedef struct {
};
union {
const char *value_str;
- gconstpointer value_ptr;
+ gpointer value_ptr;
};
} NMUtilsNamedValue;