Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/ftp/ftpproxy/files/patch-src_ftp.c
16461 views
1
--- src/ftp.c.orig 2004-07-30 12:52:12 UTC
2
+++ src/ftp.c
3
@@ -115,7 +115,7 @@ ftpcmd_t cmdtab[] = {
4
5
unsigned get_interface_info(int pfd, char *ip, int max)
6
{
7
- int size;
8
+ socklen_t size;
9
unsigned int port;
10
struct sockaddr_in saddr;
11
12
@@ -133,7 +133,7 @@ unsigned get_interface_info(int pfd, char *ip, int max
13
14
int get_client_info(ftp_t *x, int pfd)
15
{
16
- int size;
17
+ socklen_t size;
18
struct sockaddr_in saddr;
19
struct in_addr *addr;
20
struct hostent *hostp = NULL;
21
@@ -274,7 +274,8 @@ int getc_fd(ftp_t *x, int fd)
22
}
23
else if (FD_ISSET(x->ch.active, &available)) {
24
if (x->ch.state == PORT_LISTEN) {
25
- int sock, adrlen;
26
+ int sock;
27
+ socklen_t adrlen;
28
struct sockaddr_in adr;
29
30
earlyreported = 0;
31
@@ -1823,7 +1824,7 @@ int proxy_request(config_t *config)
32
syslog(LOG_NOTICE, "%s %s: %ld bytes", x->ch.command, x->ch.filename, x->ch.bytes);
33
34
if (x->xlfp != NULL) {
35
- unsigned long now;
36
+ time_t now;
37
char date[80];
38
39
/*
40
41