From d49db342b1516d426a826af1bed35fc96ef9e126 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 21 Aug 2024 11:30:51 +0100 Subject: [PATCH] linux: make if_getnetworknamespace static --- src/if-linux.c | 2 +- src/if.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/if-linux.c b/src/if-linux.c index 29786b63..7a1222fa 100644 --- a/src/if-linux.c +++ b/src/if-linux.c @@ -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; diff --git a/src/if.h b/src/if.h index 5b7848f0..d6ef65bb 100644 --- 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 *); -- 2.47.2