From 7e8fbea4c9212774c101e33218d26a0dc992dc03 Mon Sep 17 00:00:00 2001 From: David Wragg Date: Sun, 30 May 2010 23:31:40 +0100 Subject: Remove uses of the GNU-specific %ll printf format modifier The MS C runtime doesn't support it. Use the C99 inttypes.h macros instead, which is supplied by MinGW. --- examples/amqp_consumer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/amqp_consumer.c') diff --git a/examples/amqp_consumer.c b/examples/amqp_consumer.c index 331fe1d..45db990 100644 --- a/examples/amqp_consumer.c +++ b/examples/amqp_consumer.c @@ -84,8 +84,8 @@ static void run(amqp_connection_state_t conn) if (now > next_summary_time) { int countOverInterval = received - previous_received; double intervalRate = countOverInterval / ((now - previous_report_time) / 1000000.0); - printf("%lld ms: Received %d - %d since last report (%d Hz)\n", - (now - start_time) / 1000, received, countOverInterval, (int) intervalRate); + printf("%d ms: Received %d - %d since last report (%d Hz)\n", + (int)(now - start_time) / 1000, received, countOverInterval, (int) intervalRate); previous_received = received; previous_report_time = now; -- cgit v1.2.1