diff options
author | Thomas Haller <thaller@redhat.com> | 2020-06-07 14:32:20 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-06-19 17:07:19 +0200 |
commit | 4d6b96b48f2985bd8b0a1175a4411e23ed42eda0 (patch) | |
tree | 1ef4b0872560513b5dd079e8675fdfe76b547eca | |
parent | d64eb7201ec1ac095827f8a8643b71d7f673495d (diff) | |
download | NetworkManager-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.h | 2 |
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; |