diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-04 03:00:35 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-04 03:00:35 +0000 |
commit | 62bd2045bbb9b45730e0397baf19476cc56f2bed (patch) | |
tree | 6ee60514816dcafb9ae9fa7c8657823017a61d82 /src/irc | |
parent | 38fbd48712b709db055c096e11c7684e8a088826 (diff) | |
download | irssi-62bd2045bbb9b45730e0397baf19476cc56f2bed.zip |
union { .. } addr removed from IPADDR - it hasn't been actually used
for a long time..
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1339 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/irc')
-rw-r--r-- | src/irc/dcc/dcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 9bfbdd1b..c0d87a07 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -158,7 +158,7 @@ void dcc_ip2str(IPADDR *ip, char *host) /* IPv6 */ net_ip2host(ip, host); } else { - memcpy(&addr, &ip->addr, 4); + memcpy(&addr, &ip->ip, 4); g_snprintf(host, MAX_IP_LEN, "%lu", (unsigned long) htonl(addr)); } @@ -173,7 +173,7 @@ void dcc_str2ip(const char *str, IPADDR *ip) addr = strtoul(str, NULL, 10); ip->family = AF_INET; addr = (unsigned long) ntohl(addr); - memcpy(&ip->addr, &addr, 4); + memcpy(&ip->ip, &addr, 4); } else { /* IPv6 - in standard form */ net_host2ip(str, ip); |