summaryrefslogtreecommitdiffstats
path: root/daemon/bindings
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2021-12-20 12:28:40 +0100
committerOto Šťáva <oto.stava@nic.cz>2021-12-20 12:30:54 +0100
commitd00eda184b686869045a540024d1510bf1d5e745 (patch)
tree2d730842fe75247f54066bbe8c92bc164d709b19 /daemon/bindings
parentMerge branch 'fix-aws-console' into 'master' (diff)
downloadknot-resolver-d00eda184b686869045a540024d1510bf1d5e745.tar.xz
knot-resolver-d00eda184b686869045a540024d1510bf1d5e745.zip
lib/utils: rename union inaddr to union kr_sockaddr
Diffstat (limited to 'daemon/bindings')
-rw-r--r--daemon/bindings/net.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/bindings/net.c b/daemon/bindings/net.c
index f0b7cb69..ec9c822c 100644
--- a/daemon/bindings/net.c
+++ b/daemon/bindings/net.c
@@ -929,11 +929,11 @@ static int net_tls_sticket_secret_file(lua_State *L)
static int net_outgoing(lua_State *L, int family)
{
- union inaddr *addr;
+ union kr_sockaddr *addr;
if (family == AF_INET)
- addr = (union inaddr*)&the_worker->out_addr4;
+ addr = (union kr_sockaddr*)&the_worker->out_addr4;
else
- addr = (union inaddr*)&the_worker->out_addr6;
+ addr = (union kr_sockaddr*)&the_worker->out_addr6;
if (lua_gettop(L) == 0) { /* Return the current value. */
if (addr->ip.sa_family == AF_UNSPEC) {