summaryrefslogtreecommitdiff
path: root/idle.c
diff options
context:
space:
mode:
authorDavid Härdeman <david@hardeman.nu>2020-06-19 00:07:33 +0200
committerDavid Härdeman <david@hardeman.nu>2020-06-19 00:07:33 +0200
commitb32800e33ec16f7c592fa09b1a8b1f30a2e9df77 (patch)
tree591605397c24a7876d46a41fb264085eda3bc8d8 /idle.c
parent723458dfa7e6246b5de7c7943175c78cf901366a (diff)
Add an addrstr to struct sockaddr_in46, rename to struct saddr
Diffstat (limited to 'idle.c')
-rw-r--r--idle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/idle.c b/idle.c
index 6dda006..972d439 100644
--- a/idle.c
+++ b/idle.c
@@ -303,10 +303,10 @@ idle_check_connected_cb(struct cfg *cfg, struct connection *conn, bool connected
return;
}
- debug(DBG_IDLE, "connected to remote %s\n", idle->conn.remotestr);
+ debug(DBG_IDLE, "connected to remote %s\n", idle->conn.remote.addrstr);
- port = sockaddr_port(&conn->remote);
- sockaddr_addr(&conn->remote, hostname, sizeof(hostname));
+ port = saddr_port(&conn->remote);
+ saddr_addr(&conn->remote, hostname, sizeof(hostname));
pos = buf;
write_byte(&pos, MC_HELO);