From d34646a865364fa51213e0da406aeea2ab7d944b Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 8 Feb 2017 17:07:40 +0100 Subject: Fix dozens of compiler warnings across the board Change-Id: I166109dc05d3323b92cd2a42f0c7e6009950e15d --- tests/llc/LlcTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/llc/LlcTest.cpp') diff --git a/tests/llc/LlcTest.cpp b/tests/llc/LlcTest.cpp index e972cf4e..8df010e8 100644 --- a/tests/llc/LlcTest.cpp +++ b/tests/llc/LlcTest.cpp @@ -66,7 +66,7 @@ static void dequeue_and_check(gprs_llc_queue *queue, const uint8_t *exp_data, llc_msg = queue->dequeue(&info_res); OSMO_ASSERT(llc_msg != NULL); - fprintf(stderr, "dequeued msg, length %d (expected %d), data %s\n", + fprintf(stderr, "dequeued msg, length %u (expected %zu), data %s\n", msgb_length(llc_msg), len, msgb_hexdump(llc_msg)); OSMO_ASSERT(msgb_length(llc_msg) == len); @@ -239,7 +239,7 @@ int main(int argc, char **argv) if (!tall_pcu_ctx) abort(); - msgb_set_talloc_ctx(tall_pcu_ctx); + msgb_talloc_ctx_init(tall_pcu_ctx, 0); osmo_init_logging(&debug_log_info); log_set_use_color(osmo_stderr_target, 0); log_set_print_filename(osmo_stderr_target, 0); -- cgit v1.2.3