summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Marangi2023-11-09 16:19:48 +0000
committerChristian Marangi2023-11-09 16:19:48 +0000
commit5c9ecc1ff74fa676454baae21132c50b806214d4 (patch)
treee342a99cec8c37eaf03358b2378e632c3b96aaec
parent2dc7f450f3a2adbf1c2851442bfa31ee331f9a9b (diff)
downloadnetifd-5c9ecc1ff74fa676454baae21132c50b806214d4.tar.gz
system-linux: make system_if_get_master_ifindex static
Make system_if_get_master_ifindex static as it was wrongly exposed and is only used in system-linux.c. Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
-rw-r--r--system-linux.c2
-rw-r--r--system.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/system-linux.c b/system-linux.c
index 515e1b3..00530f2 100644
--- a/system-linux.c
+++ b/system-linux.c
@@ -1796,7 +1796,7 @@ static int cb_if_get_master_error(struct sockaddr_nl *nla, struct nlmsgerr *err,
return NL_STOP;
}
-int system_if_get_master_ifindex(struct device *dev)
+static int system_if_get_master_ifindex(struct device *dev)
{
struct nl_cb *cb = nl_cb_alloc(NL_CB_DEFAULT);
struct nl_msg *msg;
diff --git a/system.h b/system.h
index e9661f2..890966b 100644
--- a/system.h
+++ b/system.h
@@ -275,7 +275,6 @@ int system_if_resolve(struct device *dev);
int system_if_dump_info(struct device *dev, struct blob_buf *b);
int system_if_dump_stats(struct device *dev, struct blob_buf *b);
struct device *system_if_get_parent(struct device *dev);
-int system_if_get_master_ifindex(struct device *dev);
bool system_if_force_external(const char *ifname);
void system_if_apply_settings(struct device *dev, struct device_settings *s,
uint64_t apply_mask);