diff options
author | David Härdeman <david@hardeman.nu> | 2020-06-19 00:07:33 +0200 |
---|---|---|
committer | David Härdeman <david@hardeman.nu> | 2020-06-19 00:07:33 +0200 |
commit | b32800e33ec16f7c592fa09b1a8b1f30a2e9df77 (patch) | |
tree | 591605397c24a7876d46a41fb264085eda3bc8d8 /idle.c | |
parent | 723458dfa7e6246b5de7c7943175c78cf901366a (diff) |
Add an addrstr to struct sockaddr_in46, rename to struct saddr
Diffstat (limited to 'idle.c')
-rw-r--r-- | idle.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |