* ftpfs.c (ftpfs_initconn): Replace int with socklen_t where
appropriate. (ftpfs_open_data_connection): Likewise.
Этот коммит содержится в:
родитель
81112b0e5b
Коммит
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>
|
||||
|
||||
* 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;
|
||||
int data;
|
||||
int len = sizeof(data_addr);
|
||||
socklen_t len = sizeof(data_addr);
|
||||
struct protoent *pe;
|
||||
|
||||
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)
|
||||
{
|
||||
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)
|
||||
return -1;
|
||||
|
Загрузка…
Ссылка в новой задаче
Block a user