]> git.ipfire.org Git - thirdparty/iw.git/commitdiff
iw: make netns_get_fd static
authorJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2015 08:46:57 +0000 (10:46 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Fri, 18 Sep 2015 08:46:57 +0000 (10:46 +0200)
This can be static since it's only used right there.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
phy.c

diff --git a/phy.c b/phy.c
index 19f9cebd2587fd15d1b37fd1def403700afb55ca..39b68c4a0de00f463e2a34959cb00a6e35249b45 100644 (file)
--- a/phy.c
+++ b/phy.c
@@ -299,7 +299,7 @@ COMMAND(set, retry, "[short <limit>] [long <limit>]",
 #ifndef NETNS_RUN_DIR
 #define NETNS_RUN_DIR "/var/run/netns"
 #endif
-int netns_get_fd(const char *name)
+static int netns_get_fd(const char *name)
 {
        char pathbuf[MAXPATHLEN];
        const char *path, *ptr;