Fix compiler warning: unused variable `data'

This commit is contained in:
Yang Tse 2009-11-28 03:00:32 +00:00
Родитель 448f6684bb
Коммит 3f6854272f
1 изменённых файлов: 1 добавлений и 2 удалений

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

@ -1142,7 +1142,6 @@ static CURLcode tftp_receive_packet(struct connectdata *conn)
static long tftp_state_timeout(struct connectdata *conn, tftp_event_t *event)
{
time_t current;
struct SessionHandle *data = conn->data;
tftp_state_data_t *state = (tftp_state_data_t *)conn->proto.tftpc;
if (event)
@ -1150,7 +1149,7 @@ static long tftp_state_timeout(struct connectdata *conn, tftp_event_t *event)
time(&current);
if(current > state->max_time) {
DEBUGF(infof(data, "timeout: %d > %d\n",
DEBUGF(infof(conn->data, "timeout: %d > %d\n",
current, state->max_time));
state->error = TFTP_ERR_TIMEOUT;
state->state = TFTP_STATE_FIN;