platform: fix constness of argument for nm_platform_lookup_all()

... and nm_platform_lookup_entry().
This commit is contained in:
Thomas Haller 2017-08-14 14:16:20 +02:00
parent b0f52d41bc
commit 2cd25d7a37
2 changed files with 4 additions and 4 deletions

View file

@ -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,

View file

@ -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,