summaryrefslogtreecommitdiff
path: root/src/platform/nm-platform.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-01-27 13:44:09 +0100
committerThomas Haller <thaller@redhat.com>2020-02-10 19:11:50 +0100
commit08f86ce04d3e59afabdb9c0fb1d8ba471c5e8f0f (patch)
treea5f73688118ecfd0b14798b64205b33bb284942e /src/platform/nm-platform.c
parent2d3a1af5d67912c2ac45b835353236ac105b8bba (diff)
downloadNetworkManager-08f86ce04d3e59afabdb9c0fb1d8ba471c5e8f0f.tar.gz
platform: use C99 static array index in parameter of nm_platform_if_indextoname()
It gives the compiler a possibility to warn about some misuses of the function.
Diffstat (limited to 'src/platform/nm-platform.c')
-rw-r--r--src/platform/nm-platform.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/platform/nm-platform.c b/src/platform/nm-platform.c
index 2b554cb4b9..7535958c7c 100644
--- a/src/platform/nm-platform.c
+++ b/src/platform/nm-platform.c
@@ -1322,7 +1322,7 @@ nm_platform_link_get_ifindex (NMPlatform *self, const char *name)
}
const char *
-nm_platform_if_indextoname (NMPlatform *self, int ifindex, char *out_ifname/* of size IFNAMSIZ */)
+nm_platform_if_indextoname (NMPlatform *self, int ifindex, char out_ifname[static 16 /* IFNAMSIZ */])
{
_CHECK_SELF_NETNS (self, klass, netns, FALSE);