diff options
author | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 22:55:07 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2010-04-16 22:55:07 +0200 |
commit | 313a5b05c225ccf7de326cb137dfca053782e0e1 (patch) | |
tree | f85d0a0968f840c75bee9dab0dacf5f938cb3c1d /lib/tftp.c | |
parent | 01fc53e027efc9c9217be0b773c7a49f97291add (diff) | |
download | curl-313a5b05c225ccf7de326cb137dfca053782e0e1.tar.gz |
tftp_rx: Value stored to 'sbytes' is never read
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index dc21c542c..564de4916 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -659,7 +659,6 @@ static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event) 4, SEND_4TH_ARG, (struct sockaddr *)&state->remote_addr, state->remote_addrlen); - /* Check all sbytes were sent */ if(sbytes<0) { failf(data, "%s", Curl_strerror(state->conn, SOCKERRNO)); return CURLE_SEND_ERROR; @@ -670,10 +669,10 @@ static CURLcode tftp_rx(tftp_state_data_t *state, tftp_event_t event) case TFTP_EVENT_ERROR: setpacketevent(&state->spacket, TFTP_EVENT_ERROR); setpacketblock(&state->spacket, state->block); - sbytes = sendto(state->sockfd, (void *)state->spacket.data, - 4, SEND_4TH_ARG, - (struct sockaddr *)&state->remote_addr, - state->remote_addrlen); + (void)sendto(state->sockfd, (void *)state->spacket.data, + 4, SEND_4TH_ARG, + (struct sockaddr *)&state->remote_addr, + state->remote_addrlen); /* don't bother with the return code, but if the socket is still up we * should be a good TFTP client and let the server know we're done */ state->state = TFTP_STATE_FIN; |