aboutsummaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-01-28 17:26:26 +0000
committerYang Tse <yangsita@gmail.com>2009-01-28 17:26:26 +0000
commit34b09398d5b53cf8cd5927970abf51955560c3d4 (patch)
tree1ae073d8491db349271a62fa4e2dd9976144e8d7 /lib/tftp.c
parent0516ce7786e9500c2e447d48aa9b3f24a6ca70f9 (diff)
fix compiler warning: enumerated type mixed with another type
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index c0f56c647..09350ecc4 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -408,28 +408,28 @@ static size_t tftp_option_add(tftp_state_data_t *state, size_t csize,
return( strlen(option) + 1 );
}
-static int tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event)
+static CURLcode tftp_connect_for_tx(tftp_state_data_t *state, tftp_event_t event)
{
- int res = 0;
+ CURLcode res;
struct SessionHandle *data = state->conn->data;
infof(data, "%s\n", "Connected for transmit");
state->state = TFTP_STATE_TX;
res = tftp_set_timeouts(state);
- if(res)
+ if(res != CURLE_OK)
return(res);
return tftp_tx(state, event);
}
-static int tftp_connect_for_rx(tftp_state_data_t *state, tftp_event_t event)
+static CURLcode tftp_connect_for_rx(tftp_state_data_t *state, tftp_event_t event)
{
- int res = 0;
+ CURLcode res;
struct SessionHandle *data = state->conn->data;
infof(data, "%s\n", "Connected for receive");
state->state = TFTP_STATE_RX;
res = tftp_set_timeouts(state);
- if(res)
+ if(res != CURLE_OK)
return(res);
return tftp_rx(state, event);
}