diff options
author | Timo Sirainen <cras@irssi.org> | 2002-09-14 00:36:20 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-09-14 00:36:20 +0000 |
commit | 9805841e6194f07d5a353735dfb561eba702e37d (patch) | |
tree | 8591b6ccd5ab44d5967e03992f37ada7e5ebba28 /src | |
parent | 3f57df52c895a442fa81808afa98761f1739ef8b (diff) | |
download | irssi-9805841e6194f07d5a353735dfb561eba702e37d.zip |
DCC was broken with some 64bit systems (64bit unsigned long)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2916 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src')
-rw-r--r-- | src/irc/dcc/dcc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irc/dcc/dcc.c b/src/irc/dcc/dcc.c index 08d45ea9..1b33d95f 100644 --- a/src/irc/dcc/dcc.c +++ b/src/irc/dcc/dcc.c @@ -158,7 +158,7 @@ DCC_REC *dcc_find_request(int type, const char *nick, const char *arg) void dcc_ip2str(IPADDR *ip, char *host) { IPADDR temp_ip; - unsigned long addr; + guint32 addr; if (*settings_get_str("dcc_own_ip") != '\0') { /* overridden IP address */ @@ -178,13 +178,13 @@ void dcc_ip2str(IPADDR *ip, char *host) void dcc_str2ip(const char *str, IPADDR *ip) { - unsigned long addr; + guint32 addr; if (strchr(str, ':') == NULL) { /* normal IPv4 address in 32bit number form */ addr = strtoul(str, NULL, 10); ip->family = AF_INET; - addr = (unsigned long) ntohl(addr); + addr = (guint32) ntohl(addr); memcpy(&ip->ip, &addr, 4); } else { /* IPv6 - in standard form */ |