diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-11-15 21:45:45 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-11-15 21:45:45 +0000 |
commit | 50feea3eef87f1c07b954ad3020fdb836c7f279f (patch) | |
tree | 1458929eb07b01267e57bf3d32a066c96e68d0c5 /lib/tftp.c | |
parent | ca95f58ac0d5c9cc8f56517917af8b83248777f7 (diff) | |
download | curl-50feea3eef87f1c07b954ad3020fdb836c7f279f.tar.gz |
Rearranged code and changed Curl_readwrite_init() and Curl_pre_readwrite() into
do_init() and do_complete() which now are called first and last in the DO
function. It simplified the flow in multi.c and the functions got more
sensible names!
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index c4603934c..d315aadde 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -725,10 +725,6 @@ static CURLcode Curl_tftp(struct connectdata *conn, bool *done) } state = (tftp_state_data_t *)data->reqdata.proto.tftp; - code = Curl_readwrite_init(conn); - if(code) - return code; - /* Run the TFTP State Machine */ for(code=tftp_state_machine(state, TFTP_EVENT_INIT); (state->state != TFTP_STATE_FIN) && (code == CURLE_OK); |