summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2021-03-23 09:41:50 +0100
committerDaniel Stenberg <daniel@haxx.se>2021-03-23 13:37:10 +0100
commit2258899e9747a3956edf998a62461a9880c9f2fd (patch)
tree27bcdd04b11d43b5f5db5e64b9a2f5d589d1761a
parente467ea3bd937f38e1d2e070a68ed451303ba1e73 (diff)
downloadcurl-2258899e9747a3956edf998a62461a9880c9f2fd.tar.gz
tftp: remove unused struct fields
Follow-up to d3d90ad9c00530d Closes #6781
-rw-r--r--lib/tftp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index ecba348d9..76d3ff451 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -129,8 +129,6 @@ struct tftp_state_data {
int retries;
int retry_time;
int retry_max;
- time_t start_time;
- time_t max_time;
time_t rx_time;
struct Curl_sockaddr_storage local_addr;
struct Curl_sockaddr_storage remote_addr;
@@ -206,8 +204,6 @@ static CURLcode tftp_set_timeouts(struct tftp_state_data *state)
timediff_t timeout_ms;
bool start = (state->state == TFTP_STATE_START) ? TRUE : FALSE;
- time(&state->start_time);
-
/* Compute drop-dead time */
timeout_ms = Curl_timeleft(state->data, NULL, start);
@@ -217,9 +213,6 @@ static CURLcode tftp_set_timeouts(struct tftp_state_data *state)
return CURLE_OPERATION_TIMEDOUT;
}
- /* timeout in milliseconds */
- state->max_time = timeout_ms;
-
if(timeout_ms > 0)
maxtime = (time_t)(timeout_ms + 500) / 1000;
else