Skip to content

Commit d49db34

Browse files
committed
linux: make if_getnetworknamespace static
1 parent 8ad760b commit d49db34

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/if-linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ if_linksocket(struct sockaddr_nl *nl, int protocol, int flags)
385385
return fd;
386386
}
387387

388-
char *
388+
static char *
389389
if_getnetworknamespace(char *buf, size_t len)
390390
{
391391
struct stat sb_self, sb_netns;

src/if.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ int if_ignoregroup(int, const char *);
212212
bool if_ignore(struct dhcpcd_ctx *, const char *);
213213
int if_vimaster(struct dhcpcd_ctx *ctx, const char *);
214214
unsigned short if_vlanid(const struct interface *);
215-
char * if_getnetworknamespace(char *, size_t);
216215
int if_opensockets(struct dhcpcd_ctx *);
217216
int if_opensockets_os(struct dhcpcd_ctx *);
218217
void if_closesockets(struct dhcpcd_ctx *);

0 commit comments

Comments
 (0)