summaryrefslogtreecommitdiff
path: root/examples/amqp_consumer.c
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-05-30 23:31:40 +0100
committerDavid Wragg <dpw@lshift.net>2010-05-30 23:31:40 +0100
commit7e8fbea4c9212774c101e33218d26a0dc992dc03 (patch)
tree4815bc608e2f3f54187c20142c5c909fa1ab0810 /examples/amqp_consumer.c
parent2347dc9977d3bf0c9ed19f7ed3a905eb4e65fa46 (diff)
downloadrabbitmq-c-github-ask-7e8fbea4c9212774c101e33218d26a0dc992dc03.tar.gz
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.
Diffstat (limited to 'examples/amqp_consumer.c')
-rw-r--r--examples/amqp_consumer.c4
1 files changed, 2 insertions, 2 deletions
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;