aboutsummaryrefslogtreecommitdiff
path: root/slirp/tftp.c
diff options
context:
space:
mode:
authorBlue Swirl <blauwirbel@gmail.com>2010-03-07 13:13:05 +0000
committerBlue Swirl <blauwirbel@gmail.com>2010-03-07 13:13:05 +0000
commitaca9fcd28e8a40f2555f8d6d113e4988335aa629 (patch)
treed6650bd1c4fcf82840176590ef2969f1a73a3d70 /slirp/tftp.c
parenta990f58feda5d6b547af30a7cd281936300e13ff (diff)
slirp: remove dead assignments, spotted by clang
Value stored is never read. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'slirp/tftp.c')
-rw-r--r--slirp/tftp.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/slirp/tftp.c b/slirp/tftp.c
index 96c0e0c673..67e9f2b9d6 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);