typecasts added in an attempt to please the picky compilers

This commit is contained in:
Daniel Stenberg 2005-09-20 06:51:23 +00:00
parent da3992d2e9
commit 1cf798ad14
1 changed files with 2 additions and 2 deletions

View File

@ -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: