summaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-05-28 16:18:25 +0000
committerYang Tse <yangsita@gmail.com>2009-05-28 16:18:25 +0000
commitf13cbcf17568fcfdd4160448ceb84e2e0a0704ee (patch)
tree01bd69e56bd8c904a5e2050e359c5daec4c733bd /lib/tftp.c
parent9418c56fd3cd5df42e5d6aeeadc7686be9c4e041 (diff)
downloadcurl-f13cbcf17568fcfdd4160448ceb84e2e0a0704ee.tar.gz
fix compiler warning: unused parameter
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index eff2a1cdc..51f4b87c9 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -411,9 +411,11 @@ static size_t tftp_option_add(tftp_state_data_t *state, size_t csize,
static CURLcode tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event)
{
CURLcode res;
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
struct SessionHandle *data = state->conn->data;
infof(data, "%s\n", "Connected for transmit");
+#endif
state->state = TFTP_STATE_TX;
res = tftp_set_timeouts(state);
if(res != CURLE_OK)
@@ -424,9 +426,11 @@ static CURLcode tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event
static CURLcode tftp_connect_for_rx(tftp_state_data_t *state, tftp_event_t event)
{
CURLcode res;
+#ifndef CURL_DISABLE_VERBOSE_STRINGS
struct SessionHandle *data = state->conn->data;
infof(data, "%s\n", "Connected for receive");
+#endif
state->state = TFTP_STATE_RX;
res = tftp_set_timeouts(state);
if(res != CURLE_OK)