summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2006-10-04 21:54:04 -0700
committerH. Peter Anvin <hpa@zytor.com>2006-10-04 21:54:04 -0700
commit14993bc916942d01e5fb9c5f4c084121dfdfd41c (patch)
tree8a0db875e567f0ff32a9d864336e4703a367b389 /common
parentf3beb3a11954044a99c998979cb72ca1b6e6a661 (diff)
downloadtftp-hpa-14993bc916942d01e5fb9c5f4c084121dfdfd41c.tar.gz
Introduce socklen_t; detect non-local (e.g. broadcast) receive addresses
Diffstat (limited to 'common')
-rw-r--r--common/tftpsubs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/tftpsubs.c b/common/tftpsubs.c
index 3dd34bd..9103106 100644
--- a/common/tftpsubs.c
+++ b/common/tftpsubs.c
@@ -250,7 +250,7 @@ synchnet(int f) /* socket to flush */
int pktcount = 0;
char rbuf[PKTSIZE];
struct sockaddr_in from;
- int fromlen;
+ socklen_t fromlen;
fd_set socketset;
struct timeval notime;