summaryrefslogtreecommitdiffstats
path: root/tests/sms
diff options
context:
space:
mode:
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-09 16:32:43 +0000
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-11-09 16:46:03 +0000
commitfdb46676094c50f1d2dcebfcb5e051c2baf984ac (patch)
treea8b1e18e185c02b46aee62db09e6d3d84982581e /tests/sms
parentee6652b4bcc1bffc0b7c181666c4c1b30f5abad2 (diff)
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.
Diffstat (limited to 'tests/sms')
-rw-r--r--tests/sms/sms_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/sms/sms_test.c b/tests/sms/sms_test.c
index cdd41585..776c45a1 100644
--- a/tests/sms/sms_test.c
+++ b/tests/sms/sms_test.c
@@ -390,7 +390,7 @@ int main(int argc, char** argv)
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));