aboutsummaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-11-28 03:00:32 +0000
committerYang Tse <yangsita@gmail.com>2009-11-28 03:00:32 +0000
commit3f6854272f691898320ba53dfef845da29e619ad (patch)
treecf1d8bc45f40f94a23a70d2075ba081d85bf918c /lib/tftp.c
parent448f6684bb01915d1926564fea60b5dcf15d607d (diff)
Fix compiler warning: unused variable `data'
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index bdb345464..109183e6a 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -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;