diff options
Diffstat (limited to 'slirp/tftp.c')
-rw-r--r-- | slirp/tftp.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/slirp/tftp.c b/slirp/tftp.c index 96c0e0c..67e9f2b9 100644 --- a/slirp/tftp.c +++ b/slirp/tftp.c @@ -161,7 +161,6 @@ static void tftp_send_error(struct tftp_session *spt, struct sockaddr_in saddr, daddr; struct mbuf *m; struct tftp_t *tp; - int nobytes; m = m_get(spt->slirp); @@ -185,8 +184,6 @@ static void tftp_send_error(struct tftp_session *spt, daddr.sin_addr = spt->client_ip; daddr.sin_port = spt->client_port; - nobytes = 2; - m->m_len = sizeof(struct tftp_t) - 514 + 3 + strlen(msg) - sizeof(struct ip) - sizeof(struct udphdr); |