Use socklen_t where appropriate.

This commit is contained in:
Stefan Farfeleder 2005-08-05 09:58:49 +00:00
parent 9c662f355f
commit a3ae5e4ede
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=148726
3 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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;

View file

@ -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;