summaryrefslogtreecommitdiff
path: root/src/lib/tests/time_utils_test.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2017-08-11 09:57:31 +0000
committerSander Vrijders <[email protected]>2017-08-11 09:57:31 +0000
commitf957c2c499f8093ae86e673e2170f9dbfdcb761a (patch)
tree89cb20e426cb3977337e1d16bdb0a445622d6f75 /src/lib/tests/time_utils_test.c
parent2b42b1e1121dfd715a78502a3652d326330b8160 (diff)
parentaecf3810c22ac5e904b0eb7bfe26e3168f3f4f43 (diff)
downloadouroboros-f957c2c499f8093ae86e673e2170f9dbfdcb761a.tar.gz
ouroboros-f957c2c499f8093ae86e673e2170f9dbfdcb761a.zip
Merged in dstaesse/ouroboros/be-apple (pull request #548)
build: Fix compilation on OS X Sierra
Diffstat (limited to 'src/lib/tests/time_utils_test.c')
-rw-r--r--src/lib/tests/time_utils_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/tests/time_utils_test.c b/src/lib/tests/time_utils_test.c
index 86636c15..2878132b 100644
--- a/src/lib/tests/time_utils_test.c
+++ b/src/lib/tests/time_utils_test.c
@@ -33,7 +33,7 @@ static void ts_print(struct timespec * s)
static void tv_print(struct timeval * v)
{
- printf("timeval is %zd:%ld.\n", (ssize_t) v->tv_sec, v->tv_usec);
+ printf("timeval is %zd:%zu.\n", (ssize_t) v->tv_sec, (size_t) v->tv_usec);
}
static void ts_init(struct timespec * s,