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