no need to access it with conn->data since data is already a local variable

holding the conn->data value
This commit is contained in:
Daniel Stenberg 2006-11-27 13:38:32 +00:00
Родитель 090f5a9a45
Коммит 688699a046
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -1677,8 +1677,8 @@ Transfer(struct connectdata *conn)
/* limit-rate logic: if speed exceeds threshold, then do not include fd in
select set */
if ( (conn->data->set.max_send_speed > 0) &&
(conn->data->progress.ulspeed > conn->data->set.max_send_speed) ) {
if ( (data->set.max_send_speed > 0) &&
(data->progress.ulspeed > data->set.max_send_speed) ) {
fd_write = CURL_SOCKET_BAD;
Curl_pgrsUpdate(conn);
}
@ -1689,8 +1689,8 @@ Transfer(struct connectdata *conn)
fd_write = CURL_SOCKET_BAD;
}
if ( (conn->data->set.max_recv_speed > 0) &&
(conn->data->progress.dlspeed > conn->data->set.max_recv_speed) ) {
if ( (data->set.max_recv_speed > 0) &&
(data->progress.dlspeed > data->set.max_recv_speed) ) {
fd_read = CURL_SOCKET_BAD;
Curl_pgrsUpdate(conn);
}