summaryrefslogtreecommitdiff
path: root/src/test/test_dir_handle_get.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2015-10-02 15:39:08 +0200
committerNick Mathewson <nickm@torproject.org>2015-10-02 15:39:08 +0200
commit5d5d26ccee4c67d4bb7593af42c537d7e85c1c2d (patch)
tree1c9d48fad5248f0e8b2e25494c62c635fe30c5d6 /src/test/test_dir_handle_get.c
parent578830ad30c3c0b29bb6750d82ce5b78a59d3bcb (diff)
downloadtor-5d5d26ccee4c67d4bb7593af42c537d7e85c1c2d.tar.gz
tor-5d5d26ccee4c67d4bb7593af42c537d7e85c1c2d.zip
Fix a 32-bit error from jenkins
Diffstat (limited to 'src/test/test_dir_handle_get.c')
-rw-r--r--src/test/test_dir_handle_get.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test_dir_handle_get.c b/src/test/test_dir_handle_get.c
index 2355f622bf..5a84f17c12 100644
--- a/src/test/test_dir_handle_get.c
+++ b/src/test/test_dir_handle_get.c
@@ -251,7 +251,7 @@ test_dir_handle_get_bytes_txt(void *data)
tt_assert(strstr(header, "Content-Encoding: identity\r\n"));
tt_assert(strstr(header, "Pragma: no-cache\r\n"));
- sprintf(buff, "Content-Length: %ld\r\n", body_len);
+ sprintf(buff, "Content-Length: %ld\r\n", (long) body_len);
tt_assert(strstr(header, buff));
tt_int_op(body_used, OP_EQ, strlen(body));
@@ -459,7 +459,7 @@ test_dir_handle_get_rendezvous2_on_encrypted_conn_success(void *data)
tt_assert(strstr(header, "Content-Type: text/plain\r\n"));
tt_assert(strstr(header, "Content-Encoding: identity\r\n"));
tt_assert(strstr(header, "Pragma: no-cache\r\n"));
- sprintf(buff, "Content-Length: %ld\r\n", body_len);
+ sprintf(buff, "Content-Length: %ld\r\n", (long) body_len);
tt_assert(strstr(header, buff));
tt_int_op(body_used, OP_EQ, strlen(body));