diff options
author | Peter Palfrader <peter@palfrader.org> | 2014-07-23 22:12:05 +0200 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2014-07-28 15:42:20 -0400 |
commit | f8cbba7a33f0015f15f9246877df570c4cbff6d4 (patch) | |
tree | 33c973582e91b4e57da0efdaccf1f55026f6a30d /src/test/test_util.c | |
parent | b8ef2eaba4cb82d328f70102533e2c510bb91497 (diff) | |
download | tor-f8cbba7a33f0015f15f9246877df570c4cbff6d4.tar.gz tor-f8cbba7a33f0015f15f9246877df570c4cbff6d4.zip |
Cast long long arguments to (int) for tt_int_op()
Diffstat (limited to 'src/test/test_util.c')
-rw-r--r-- | src/test/test_util.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/test_util.c b/src/test/test_util.c index 3a1ebb89a8..3f840cdfc2 100644 --- a/src/test/test_util.c +++ b/src/test/test_util.c @@ -2404,22 +2404,22 @@ test_util_ftruncate(void *ptr) /* Make the file be there. */ tt_int_op(strlen(message), ==, write_all(fd, message, strlen(message), 0)); - tt_int_op(tor_fd_getpos(fd), ==, strlen(message)); + tt_int_op((int)tor_fd_getpos(fd), ==, strlen(message)); tt_int_op(0, ==, fstat(fd, &st)); - tt_int_op(st.st_size, ==, strlen(message)); + tt_int_op((int)st.st_size, ==, strlen(message)); /* Truncate and see if it got truncated */ tt_int_op(0, ==, tor_ftruncate(fd)); - tt_int_op(tor_fd_getpos(fd), ==, 0); + tt_int_op((int)tor_fd_getpos(fd), ==, 0); tt_int_op(0, ==, fstat(fd, &st)); - tt_int_op(st.st_size, ==, 0); + tt_int_op((int)st.st_size, ==, 0); /* Replace, and see if it got replaced */ tt_int_op(strlen(message2), ==, write_all(fd, message2, strlen(message2), 0)); - tt_int_op(tor_fd_getpos(fd), ==, strlen(message2)); + tt_int_op((int)tor_fd_getpos(fd), ==, strlen(message2)); tt_int_op(0, ==, fstat(fd, &st)); - tt_int_op(st.st_size, ==, strlen(message2)); + tt_int_op((int)st.st_size, ==, strlen(message2)); close(fd); fd = -1; |