diff options
Diffstat (limited to 'lib/tftp.c')
-rw-r--r-- | lib/tftp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c index 9ec1a1512..2a28b0cb9 100644 --- a/lib/tftp.c +++ b/lib/tftp.c @@ -583,7 +583,7 @@ CURLcode Curl_tftp_connect(struct connectdata *conn, bool *done) state->state = TFTP_STATE_START; ((struct sockaddr *)&state->local_addr)->sa_family = - conn->ip_addr->ai_family; + (unsigned short)(conn->ip_addr->ai_family); tftp_set_timeouts(state); |