Use socklen_t where appropriate.
This commit is contained in:
parent
9c662f355f
commit
a3ae5e4ede
@ -55,7 +55,8 @@ read_rip(int sock,
|
||||
{
|
||||
struct sockaddr_in from;
|
||||
struct interface *aifp;
|
||||
int fromlen, cc;
|
||||
socklen_t fromlen;
|
||||
int cc;
|
||||
#ifdef USE_PASSIFNAME
|
||||
static struct msg_limit bad_name;
|
||||
struct {
|
||||
@ -80,7 +81,7 @@ read_rip(int sock,
|
||||
}
|
||||
if (fromlen != sizeof(struct sockaddr_in))
|
||||
logbad(1,"impossible recvfrom(rip) fromlen=%d",
|
||||
fromlen);
|
||||
(int)fromlen);
|
||||
|
||||
/* aifp is the "authenticated" interface via which the packet
|
||||
* arrived. In fact, it is only the interface on which
|
||||
|
@ -135,7 +135,8 @@ main(int argc, char *argv[])
|
||||
char *host, *localname, *p, *user, term[1024];
|
||||
speed_t ospeed;
|
||||
struct sockaddr_storage ss;
|
||||
int i, len, len2, sslen;
|
||||
socklen_t sslen;
|
||||
int i, len, len2;
|
||||
|
||||
argoff = dflag = Dflag = 0;
|
||||
one = 1;
|
||||
|
@ -105,7 +105,7 @@ xmitfile(fd, name, mode)
|
||||
volatile int size, convert;
|
||||
volatile unsigned long amount;
|
||||
struct sockaddr_storage from;
|
||||
int fromlen;
|
||||
socklen_t fromlen;
|
||||
FILE *file;
|
||||
struct sockaddr_storage peer;
|
||||
struct sockaddr_storage serv; /* valid server port number */
|
||||
@ -223,7 +223,7 @@ recvfile(fd, name, mode)
|
||||
volatile int size, firsttrip;
|
||||
volatile unsigned long amount;
|
||||
struct sockaddr_storage from;
|
||||
int fromlen;
|
||||
socklen_t fromlen;
|
||||
FILE *file;
|
||||
volatile int convert; /* true if converting crlf -> lf */
|
||||
struct sockaddr_storage peer;
|
||||
|
Loading…
x
Reference in New Issue
Block a user