summaryrefslogtreecommitdiff
path: root/tftpd/tftpd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tftpd/tftpd.c')
-rw-r--r--tftpd/tftpd.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/tftpd/tftpd.c b/tftpd/tftpd.c
index 91f5ae1..364e7d2 100644
--- a/tftpd/tftpd.c
+++ b/tftpd/tftpd.c
@@ -93,7 +93,6 @@ static unsigned int max_blksize = MAX_SEGSIZE;
static char tmpbuf[INET6_ADDRSTRLEN], *tmp_p;
static union sock_addr from;
-static socklen_t fromlen;
static off_t tsize;
static int tsize_ok;
@@ -874,9 +873,7 @@ int main(int argc, char **argv)
set_socket_nonblock(fd, 0);
#endif
- fromlen = sizeof(from);
- n = myrecvfrom(fd, buf, sizeof(buf), 0,
- (struct sockaddr *)&from, &fromlen, &myaddr);
+ n = myrecvfrom(fd, buf, sizeof(buf), 0, &from, &myaddr);
if (n < 0) {
if (E_WOULD_BLOCK(errno) || errno == EINTR) {