Patches for gcc4.

This commit is contained in:
Alex Dupre
2007-01-27 10:49:01 +00:00
parent a5a2d20ae3
commit 3a0f3ce75d
2 changed files with 29 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
--- src/proto_map.cc.orig Sat Jan 27 11:44:09 2007
+++ src/proto_map.cc Sat Jan 27 11:46:42 2007
@@ -16,11 +16,11 @@
map_list = map_l;
fragile = 0; /* false */
- ftp_actv = (int) actv;
+ ftp_actv = (long) actv;
if (ftp_actv)
actv_ip = *actv;
- ftp_pasv = (int) pasv;
+ ftp_pasv = (long) pasv;
if (ftp_pasv)
pasv_ip = *pasv;

View File

@@ -0,0 +1,13 @@
--- src/proto_map.hpp.orig Sat Jan 27 11:45:32 2007
+++ src/proto_map.hpp Sat Jan 27 11:46:08 2007
@@ -16,8 +16,8 @@
private:
vector<int> *port_list;
vector<host_map*> *map_list;
- int ftp_actv;
- int ftp_pasv;
+ long ftp_actv;
+ long ftp_pasv;
struct ip_addr actv_ip;
struct ip_addr pasv_ip;
int uid;