summaryrefslogtreecommitdiffstats
path: root/usr.bin/tftp
diff options
context:
space:
mode:
authorstefanf <stefanf@FreeBSD.org>2005-08-05 09:58:49 +0000
committerstefanf <stefanf@FreeBSD.org>2005-08-05 09:58:49 +0000
commit364138732beb56b3891f2c0e6d9ee2ad14454362 (patch)
treedd77799943ac1dcef8d2551a6cd191b6c11ca1f0 /usr.bin/tftp
parent404af3a8b5f464a6aeb8755af56a8d45142f5bd5 (diff)
downloadFreeBSD-src-364138732beb56b3891f2c0e6d9ee2ad14454362.zip
FreeBSD-src-364138732beb56b3891f2c0e6d9ee2ad14454362.tar.gz
Use socklen_t where appropriate.
Diffstat (limited to 'usr.bin/tftp')
-rw-r--r--usr.bin/tftp/tftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/tftp/tftp.c b/usr.bin/tftp/tftp.c
index bac262f..4deee1b 100644
--- a/usr.bin/tftp/tftp.c
+++ b/usr.bin/tftp/tftp.c
@@ -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;
OpenPOWER on IntegriCloud