diff options
author | Bruno Haible <bruno@clisp.org> | 2021-02-08 21:32:22 +0100 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2021-02-08 21:32:22 +0100 |
commit | 5040f712e9ab0e1a203095f2c3dcca5b7d473f1d (patch) | |
tree | baffb447f4cbc05a8d89b967ce594fb3f078f60d /tests | |
parent | 71a8a22eac2abfa80ae4d35462fa0733c688383c (diff) | |
download | gnulib-5040f712e9ab0e1a203095f2c3dcca5b7d473f1d.tar.gz |
posixtm tests: Fix warnings seen on MidnightBSD/x86.
* tests/test-posixtm.c (main): Convert two 'time_t' values to 'long' for
printing.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-posixtm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test-posixtm.c b/tests/test-posixtm.c index ea20564bd9..b07e0c55a9 100644 --- a/tests/test-posixtm.c +++ b/tests/test-posixtm.c @@ -178,7 +178,7 @@ main (void) if (t_out != t_exp) { printf ("%s mismatch (-: actual; +:expected)\n-%12ld\n+%12ld\n", - T[i].in, t_out, t_exp); + T[i].in, (long) t_out, (long) t_exp); fail = 1; } } |