From a1ea6dc8fffc0874e86e976f2709cbadecb1a023 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Wed, 8 May 2002 09:21:04 +0000 Subject: 2002-05-07 Roland McGrath * xfer.c (ftp_conn_start_open_actv_data): size_t -> socklen_t (ftp_conn_finish_open_actv_data): Likewise. --- libftpconn/xfer.c | 9 ++++----- 1 file 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 + Copyright (C) 1997,2002 Free Software Foundation, Inc. + Written by Miles Bader 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); -- cgit v1.2.3