]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
linux: make if_getnetworknamespace static
authorRoy Marples <roy@marples.name>
Wed, 21 Aug 2024 10:30:51 +0000 (11:30 +0100)
committerRoy Marples <roy@marples.name>
Wed, 21 Aug 2024 10:40:04 +0000 (11:40 +0100)
src/if-linux.c
src/if.h

index 29786b63c8fae0f74cd4642691ae608011845f77..7a1222fad4c68caa6c7e7a657e67a9b37d5d70b2 100644 (file)
@@ -385,7 +385,7 @@ if_linksocket(struct sockaddr_nl *nl, int protocol, int flags)
        return fd;
 }
 
-char *
+static char *
 if_getnetworknamespace(char *buf, size_t len)
 {
        struct stat sb_self, sb_netns;
index 5b7848f0b4ceb77fed5c611710af707db505fd49..d6ef65bb462a36ffdfbc6722f5469a8e471d0ca0 100644 (file)
--- a/src/if.h
+++ b/src/if.h
@@ -212,7 +212,6 @@ int if_ignoregroup(int, const char *);
 bool if_ignore(struct dhcpcd_ctx *, const char *);
 int if_vimaster(struct dhcpcd_ctx *ctx, const char *);
 unsigned short if_vlanid(const struct interface *);
-char * if_getnetworknamespace(char *, size_t);
 int if_opensockets(struct dhcpcd_ctx *);
 int if_opensockets_os(struct dhcpcd_ctx *);
 void if_closesockets(struct dhcpcd_ctx *);