diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-09-20 06:51:23 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-09-20 06:51:23 +0000 |
commit | 1cf798ad14ce9f882a8ec6abc6fbc18962d40f17 (patch) | |
tree | 49a511b9db458eb4d1464874dcccd76702b4c269 /lib | |
parent | da3992d2e9451ad70ce33b4d23915c31a5406e96 (diff) |
typecasts added in an attempt to please the picky compilers
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tftp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 891871d87..29c13cbd6 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -633,7 +633,7 @@ CURLcode Curl_tftp(struct connectdata *conn, bool *done) } /* The event is given by the TFTP packet time */ - event = ntohs(state->rpacket.event); + event = (tftp_event_t)ntohs(state->rpacket.event); switch(event) { case TFTP_EVENT_DATA: @@ -641,7 +641,7 @@ CURLcode Curl_tftp(struct connectdata *conn, bool *done) (char *)state->rpacket.u.data.data, state->rbytes-4); break; case TFTP_EVENT_ERROR: - state->error = ntohs(state->rpacket.u.error.code); + state->error = (tftp_error_t)ntohs(state->rpacket.u.error.code); infof(conn->data, "%s\n", (char *)state->rpacket.u.error.data); break; case TFTP_EVENT_ACK: |