summaryrefslogtreecommitdiff
path: root/lib/tftp.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2013-12-31 11:10:25 +0000
committerSteve Holme <steve_holme@hotmail.com>2013-12-31 11:10:42 +0000
commit60bd22620a1e63fb163a788f9565b94d138c6030 (patch)
tree8562a7bf927008c57b006ed907996a4f69dd52bf /lib/tftp.c
parent6e4d4a9b51fe65b47992148fc548a5d4efa8ef64 (diff)
downloadgnurl-60bd22620a1e63fb163a788f9565b94d138c6030.tar.gz
gnurl-60bd22620a1e63fb163a788f9565b94d138c6030.tar.bz2
gnurl-60bd22620a1e63fb163a788f9565b94d138c6030.zip
mprintf: Replaced internal usage of FORMAT_OFF_T and FORMAT_OFF_TU
Following commit 0aafd77fa4c6f2, replaced the internal usage of FORMAT_OFF_T and FORMAT_OFF_TU with the external versions that we expect API programmers to use. This negates the need for separate definitions which were subtly different under different platforms/compilers.
Diffstat (limited to 'lib/tftp.c')
-rw-r--r--lib/tftp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/tftp.c b/lib/tftp.c
index 04e8fa798..5b473d706 100644
--- a/lib/tftp.c
+++ b/lib/tftp.c
@@ -499,7 +499,8 @@ static CURLcode tftp_send_first(tftp_state_data_t *state, tftp_event_t event)
/* add tsize option */
if(data->set.upload && (data->set.infilesize != -1))
- snprintf( buf, sizeof(buf), "%" FORMAT_OFF_T, data->set.infilesize );
+ snprintf(buf, sizeof(buf), "%" CURL_FORMAT_CURL_OFF_T,
+ data->set.infilesize);
else
strcpy(buf, "0"); /* the destination is large enough */