typecasts added in an attempt to please the picky compilers
This commit is contained in:
parent
da3992d2e9
commit
1cf798ad14
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user