Path: blob/main/ftp/ftpproxy/files/patch-src_ftp.c
16461 views
--- src/ftp.c.orig 2004-07-30 12:52:12 UTC1+++ src/ftp.c2@@ -115,7 +115,7 @@ ftpcmd_t cmdtab[] = {34unsigned get_interface_info(int pfd, char *ip, int max)5{6- int size;7+ socklen_t size;8unsigned int port;9struct sockaddr_in saddr;1011@@ -133,7 +133,7 @@ unsigned get_interface_info(int pfd, char *ip, int max1213int get_client_info(ftp_t *x, int pfd)14{15- int size;16+ socklen_t size;17struct sockaddr_in saddr;18struct in_addr *addr;19struct hostent *hostp = NULL;20@@ -274,7 +274,8 @@ int getc_fd(ftp_t *x, int fd)21}22else if (FD_ISSET(x->ch.active, &available)) {23if (x->ch.state == PORT_LISTEN) {24- int sock, adrlen;25+ int sock;26+ socklen_t adrlen;27struct sockaddr_in adr;2829earlyreported = 0;30@@ -1823,7 +1824,7 @@ int proxy_request(config_t *config)31syslog(LOG_NOTICE, "%s %s: %ld bytes", x->ch.command, x->ch.filename, x->ch.bytes);3233if (x->xlfp != NULL) {34- unsigned long now;35+ time_t now;36char date[80];3738/*394041