diff options
Diffstat (limited to 'libs/luci-lib-nixio/src/address.c')
-rw-r--r-- | libs/luci-lib-nixio/src/address.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/luci-lib-nixio/src/address.c b/libs/luci-lib-nixio/src/address.c index 7957e8cc19..6ed3e5c0e9 100644 --- a/libs/luci-lib-nixio/src/address.c +++ b/libs/luci-lib-nixio/src/address.c @@ -153,7 +153,7 @@ int nixio__addr_write(nixio_addr *addr, struct sockaddr *saddr) { /** * netmask to prefix helper */ -int nixio__addr_prefix(struct sockaddr *saddr) { +static int nixio__addr_prefix(struct sockaddr *saddr) { int prefix = 0; size_t len; uint8_t *addr; @@ -544,7 +544,7 @@ static int nixio_getifaddrs(lua_State *L) { /* module table */ -static const luaL_reg R[] = { +static const luaL_Reg R[] = { #if defined(__linux__) || defined(BSD) {"getifaddrs", nixio_getifaddrs}, #endif @@ -554,7 +554,7 @@ static const luaL_reg R[] = { }; /* object table */ -static const luaL_reg M[] = { +static const luaL_Reg M[] = { {"getsockname", nixio_sock_getsockname}, {"getpeername", nixio_sock_getpeername}, {NULL, NULL} |