summaryrefslogtreecommitdiff
path: root/idle.c
diff options
context:
space:
mode:
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);