summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2017-08-14 14:16:20 +0200
committerThomas Haller <thaller@redhat.com>2017-08-23 18:37:22 +0200
commit2cd25d7a373e7422c6a14fb7d5827d19f8ec1851 (patch)
tree9fb7242c37014f5b51de76a052536d30413cc4bc
parentb0f52d41bc5223bb015f456300878319c95c5e0f (diff)
downloadNetworkManager-2cd25d7a373e7422c6a14fb7d5827d19f8ec1851.tar.gz
platform: fix constness of argument for nm_platform_lookup_all()
... and nm_platform_lookup_entry().
-rw-r--r--src/platform/nm-platform.c4
-rw-r--r--src/platform/nmp-object.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index 7ee463d00c..c950c85cf6 100644
--- a/src/platform/nm-platform.c
+++ b/src/platform/nm-platform.c
@@ -2806,7 +2806,7 @@ nm_platform_ethtool_get_link_settings (NMPlatform *self, int ifindex, gboolean *
const NMDedupMultiHeadEntry *
nm_platform_lookup_all (NMPlatform *platform,
NMPCacheIdType cache_id_type,
- NMPObject *obj)
+ const NMPObject *obj)
{
return nmp_cache_lookup_all (nm_platform_get_cache (platform),
cache_id_type,
@@ -2816,7 +2816,7 @@ nm_platform_lookup_all (NMPlatform *platform,
const NMDedupMultiEntry *
nm_platform_lookup_entry (NMPlatform *platform,
NMPCacheIdType cache_id_type,
- NMPObject *obj)
+ const NMPObject *obj)
{
return nmp_cache_lookup_entry_with_idx_type (nm_platform_get_cache (platform),
cache_id_type,
diff --git a/src/platform/nmp-object.h b/src/platform/nmp-object.h
index 8bb6e96877..2e34266119 100644
--- a/src/platform/nmp-object.h
+++ b/src/platform/nmp-object.h
@@ -676,11 +676,11 @@ ASSERT_nmp_cache_ops (const NMPCache *cache,
const NMDedupMultiHeadEntry *nm_platform_lookup_all (NMPlatform *platform,
NMPCacheIdType cache_id_type,
- NMPObject *obj);
+ const NMPObject *obj);
const NMDedupMultiEntry *nm_platform_lookup_entry (NMPlatform *platform,
NMPCacheIdType cache_id_type,
- NMPObject *obj);
+ const NMPObject *obj);
static inline const NMDedupMultiHeadEntry *
nm_platform_lookup_obj_type (NMPlatform *platform,