summaryrefslogtreecommitdiff
path: root/examples/amqp_consumer.c
diff options
context:
space:
mode:
authorDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
committerDavid Wragg <david@rabbitmq.com>2010-10-21 17:49:04 +0100
commitc72bba9de479902e864e3a6802c934cf7fb45e39 (patch)
tree175f75a729d02b9f5c1b48c17951395cdd7f2531 /examples/amqp_consumer.c
parent51345a3ded6ecd073921b7e83ec06bbd8988c345 (diff)
downloadrabbitmq-c-github-ask-c72bba9de479902e864e3a6802c934cf7fb45e39.tar.gz
Make the examples compile and work under Windows
Diffstat (limited to 'examples/amqp_consumer.c')
-rw-r--r--examples/amqp_consumer.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/amqp_consumer.c b/examples/amqp_consumer.c
index 2a0d9b9..2710643 100644
--- a/examples/amqp_consumer.c
+++ b/examples/amqp_consumer.c
@@ -56,27 +56,26 @@
#include <amqp.h>
#include <amqp_framing.h>
-#include <unistd.h>
#include <assert.h>
-#include "example_utils.h"
+#include "utils.h"
#define SUMMARY_EVERY_US 1000000
static void run(amqp_connection_state_t conn)
{
- long long start_time = now_microseconds();
+ uint64_t start_time = now_microseconds();
int received = 0;
int previous_received = 0;
- long long previous_report_time = start_time;
- long long next_summary_time = start_time + SUMMARY_EVERY_US;
+ uint64_t previous_report_time = start_time;
+ uint64_t next_summary_time = start_time + SUMMARY_EVERY_US;
amqp_frame_t frame;
int result;
size_t body_received;
size_t body_target;
- long long now;
+ uint64_t now;
while (1) {
now = now_microseconds();