mirror of https://github.com/MidnightCommander/mc
* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
appropriate. (ftpfs_open_data_connection): Likewise.
This commit is contained in:
parent
81112b0e5b
commit
744c65862e
|
@ -1,3 +1,8 @@
|
||||||
|
2004-10-27 Roland Illig <roland.illig@gmx.de>
|
||||||
|
|
||||||
|
* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
|
||||||
|
appropriate. (ftpfs_open_data_connection): Likewise.
|
||||||
|
|
||||||
2004-10-27 Leonard den Ottolander <leonard * den ottolander nl>
|
2004-10-27 Leonard den Ottolander <leonard * den ottolander nl>
|
||||||
|
|
||||||
* tar.c tar_read_header(): q should not point to a static string.
|
* tar.c tar_read_header(): q should not point to a static string.
|
||||||
|
|
|
@ -879,7 +879,7 @@ ftpfs_initconn (struct vfs_class *me, struct vfs_s_super *super)
|
||||||
{
|
{
|
||||||
struct sockaddr_in data_addr;
|
struct sockaddr_in data_addr;
|
||||||
int data;
|
int data;
|
||||||
int len = sizeof(data_addr);
|
socklen_t len = sizeof(data_addr);
|
||||||
struct protoent *pe;
|
struct protoent *pe;
|
||||||
|
|
||||||
pe = getprotobyname ("tcp");
|
pe = getprotobyname ("tcp");
|
||||||
|
@ -929,7 +929,8 @@ ftpfs_open_data_connection (struct vfs_class *me, struct vfs_s_super *super, con
|
||||||
const char *remote, int isbinary, int reget)
|
const char *remote, int isbinary, int reget)
|
||||||
{
|
{
|
||||||
struct sockaddr_in from;
|
struct sockaddr_in from;
|
||||||
int s, j, data, fromlen = sizeof(from);
|
int s, j, data;
|
||||||
|
socklen_t fromlen = sizeof(from);
|
||||||
|
|
||||||
if ((s = ftpfs_initconn (me, super)) == -1)
|
if ((s = ftpfs_initconn (me, super)) == -1)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue