summaryrefslogtreecommitdiff
path: root/libftpconn
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-08 09:21:04 +0000
committerRoland McGrath <roland@gnu.org>2002-05-08 09:21:04 +0000
commita1ea6dc8fffc0874e86e976f2709cbadecb1a023 (patch)
tree6428a2477a96b3c8f8a415f622c7bbbd34850384 /libftpconn
parent45ec6cc104330722197534ad2bfb36309143fc9a (diff)
2002-05-07 Roland McGrath <roland@frob.com>
* xfer.c (ftp_conn_start_open_actv_data): size_t -> socklen_t (ftp_conn_finish_open_actv_data): Likewise.
Diffstat (limited to 'libftpconn')
-rw-r--r--libftpconn/xfer.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libftpconn/xfer.c b/libftpconn/xfer.c
index 762fd6a7..b3d0786d 100644
--- a/libftpconn/xfer.c
+++ b/libftpconn/xfer.c
@@ -1,8 +1,7 @@
/* Start/stop data channel transfer
- Copyright (C) 1997 Free Software Foundation, Inc.
-
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1997,2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
@@ -34,7 +33,7 @@ ftp_conn_start_open_actv_data (struct ftp_conn *conn, int *data)
/* DCQ is a socket on which to listen for data connections from the server. */
int dcq;
struct sockaddr *addr = conn->actv_data_addr;
- size_t addr_len = sizeof *addr;
+ socklen_t addr_len = sizeof *addr;
if (! addr)
/* Generate an address for the data connection (which we must know,
@@ -105,7 +104,7 @@ static error_t
ftp_conn_finish_open_actv_data (struct ftp_conn *conn, int *data)
{
struct sockaddr_in rmt_addr;
- size_t rmt_addr_len = sizeof rmt_addr;
+ socklen_t rmt_addr_len = sizeof rmt_addr;
int real = accept (*data, &rmt_addr, &rmt_addr_len);
close (*data);