From a7a9617daee6e6bd36c46eecc988face4b7d56ce Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Sun, 16 Feb 2014 08:03:59 +0100 Subject: HACK: Make mgcp_test compile This is not a solution, just a workarround to get rid of llround() --- openbsc/tests/mgcp/mgcp_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'openbsc') diff --git a/openbsc/tests/mgcp/mgcp_test.c b/openbsc/tests/mgcp/mgcp_test.c index 498a1d8e6..7c562d610 100644 --- a/openbsc/tests/mgcp/mgcp_test.c +++ b/openbsc/tests/mgcp/mgcp_test.c @@ -801,7 +801,7 @@ static void test_packet_error_detection(int patch_ssrc, int patch_ts) for (i = 0; i < ARRAY_SIZE(test_rtp_packets1); ++i) { struct rtp_packet_info *info = test_rtp_packets1 + i; - force_monotonic_time_us = round(1000000.0 * info->txtime); + force_monotonic_time_us = (1000000.0 * info->txtime)+0.5; OSMO_ASSERT(info->len <= sizeof(buffer)); OSMO_ASSERT(info->len >= 0); -- cgit v1.2.3