diff options
author | Juraj Lutter <otis@FreeBSD.org> | 2025-03-13 12:18:09 +0100 |
---|---|---|
committer | Zsolt Udvari <uzsolt@FreeBSD.org> | 2025-03-13 12:18:09 +0100 |
commit | 629de3e1aa28bc9a6dc19a5659c7c635304c4d39 (patch) | |
tree | ed574e7884e0c1acf67b08326c1b5684332eac28 /ftp/ftpproxy/files/patch-src_ftp.c | |
parent | graphics/plutovg: Update to 0.0.13 (diff) |
ftp/ftpproxy: Minor cosmetic changes
Add rc.d script and option to use PID file.
Switch to DISTVERSION.
Add license information.
PR: 269722
Approved by: maintainer timeout (3+ weeks)
Diffstat (limited to 'ftp/ftpproxy/files/patch-src_ftp.c')
-rw-r--r-- | ftp/ftpproxy/files/patch-src_ftp.c | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/ftp/ftpproxy/files/patch-src_ftp.c b/ftp/ftpproxy/files/patch-src_ftp.c new file mode 100644 index 000000000000..8d5796197ba2 --- /dev/null +++ b/ftp/ftpproxy/files/patch-src_ftp.c @@ -0,0 +1,39 @@ +--- src/ftp.c.orig 2004-07-30 12:52:12 UTC ++++ src/ftp.c +@@ -115,7 +115,7 @@ ftpcmd_t cmdtab[] = { + + unsigned get_interface_info(int pfd, char *ip, int max) + { +- int size; ++ socklen_t size; + unsigned int port; + struct sockaddr_in saddr; + +@@ -133,7 +133,7 @@ unsigned get_interface_info(int pfd, char *ip, int max + + int get_client_info(ftp_t *x, int pfd) + { +- int size; ++ socklen_t size; + struct sockaddr_in saddr; + struct in_addr *addr; + struct hostent *hostp = NULL; +@@ -274,7 +274,8 @@ int getc_fd(ftp_t *x, int fd) + } + else if (FD_ISSET(x->ch.active, &available)) { + if (x->ch.state == PORT_LISTEN) { +- int sock, adrlen; ++ int sock; ++ socklen_t adrlen; + struct sockaddr_in adr; + + earlyreported = 0; +@@ -1823,7 +1824,7 @@ int proxy_request(config_t *config) + syslog(LOG_NOTICE, "%s %s: %ld bytes", x->ch.command, x->ch.filename, x->ch.bytes); + + if (x->xlfp != NULL) { +- unsigned long now; ++ time_t now; + char date[80]; + + /* |