Make inline function also static

After compiling with GCC 7.1.0 it otherwise fails linking for some
reason, complaining about that non-static inline function being not
found.
This commit is contained in:
Andreas Schneider 2017-07-13 15:49:36 +02:00 committed by Foo
parent 73244eb976
commit 924bbbe92b
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ void do_write(int sd, const char *raw, size_t len) {
}
}
inline size_t true_sun_len(const struct sockaddr_un *ptr) {
static inline size_t true_sun_len(const struct sockaddr_un *ptr) {
#ifdef __linux__
/* Because SUN_LEN uses strlen and abstract namespace paths begin
* with a null byte, SUN_LEN is broken for these. Passing the full