From fdb46676094c50f1d2dcebfcb5e051c2baf984ac Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Mon, 9 Nov 2015 16:32:43 +0000 Subject: 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. --- tests/gsm0808/gsm0808_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/gsm0808') diff --git a/tests/gsm0808/gsm0808_test.c b/tests/gsm0808/gsm0808_test.c index 7e5e97b5..98502b75 100644 --- a/tests/gsm0808/gsm0808_test.c +++ b/tests/gsm0808/gsm0808_test.c @@ -26,7 +26,7 @@ #define VERIFY(msg, data, len) \ if (msgb_l3len(msg) != len) { \ printf("%s:%d Length don't match: %d vs. %d. %s\n", \ - __func__, __LINE__, msgb_l3len(msg), len, \ + __func__, __LINE__, msgb_l3len(msg), (int) len, \ osmo_hexdump(msg->l3h, msgb_l3len(msg))); \ abort(); \ } else if (memcmp(msg->l3h, data, len) != 0) { \ -- cgit v1.2.3