From b32800e33ec16f7c592fa09b1a8b1f30a2e9df77 Mon Sep 17 00:00:00 2001 From: David Härdeman Date: Fri, 19 Jun 2020 00:07:33 +0200 Subject: Add an addrstr to struct sockaddr_in46, rename to struct saddr --- idle.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'idle.c') 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); -- cgit v1.2.3