summaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2018-04-06 15:26:04 +0200
committerDaniel Stenberg <daniel@haxx.se>2018-04-07 11:19:46 +0200
commit8020a0c62f79239c802ed6fa840b11677176910a (patch)
tree9718e430d0af29080d96b79e2332d9164b98d5f6 /lib/tftp.c
parenta19fefb0706f939d2df7a76704ee549fecb1c4fd (diff)
downloadgnurl-8020a0c62f79239c802ed6fa840b11677176910a.tar.gz
gnurl-8020a0c62f79239c802ed6fa840b11677176910a.tar.bz2
gnurl-8020a0c62f79239c802ed6fa840b11677176910a.zip
curl_setup: provide a CURL_SA_FAMILY_T type if none exists
... and use this type instead of 'sa_family_t' in the code since several platforms don't have it. Closes #2463
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 7fd7b3751..b32960f82 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2017, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -1010,7 +1010,7 @@ static CURLcode tftp_connect(struct connectdata *conn, bool *done)
state->requested_blksize = blksize;
((struct sockaddr *)&state->local_addr)->sa_family =
- (sa_family_t)(conn->ip_addr->ai_family);
+ (CURL_SA_FAMILY_T)(conn->ip_addr->ai_family);
tftp_set_timeouts(state);