test: Fix compiler warnings on 64bit systems
Use %td to print ptrdiff_t use %zu to print size_t,
include time.h on FreeBSD. Some more compiler warnings are
left but they require more thinking.
diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c
index cdd4158..776c45a 100644
--- a/tests/sms/sms_test.c
+++ b/tests/sms/sms_test.c
@@ -390,7 +390,7 @@
memset(result, 0x42, sizeof(result));
nchars = gsm_7bit_decode_n_hdr(result, sizeof(result), test_decode[i].input,
test_decode[i].expected_septet_length, test_decode[i].ud_hdr_ind);
- printf("Decode case %d: return value %d (expected %d)\n", i, nchars, strlen(result));
+ printf("Decode case %d: return value %d (expected %zu)\n", i, nchars, strlen(result));
OSMO_ASSERT(strcmp(result, (const char *) test_decode[i].expected) == 0);
OSMO_ASSERT(nchars == strlen(result));