X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Famqp.c;h=aba4f0122ca7c87ab4313da6cc3fd318872a9d88;hb=7bab45b57d6ef99ae55c499c51478dd63c3b1397;hp=3ba8225ca6bc989955d75ae6602515158576e9ec;hpb=534642e9d65763b67d73433ebcfaa90de88d76c6;p=collectd.git diff --git a/src/amqp.c b/src/amqp.c index 3ba8225c..aba4f012 100644 --- a/src/amqp.c +++ b/src/amqp.c @@ -304,7 +304,7 @@ static int camqp_create_exchange (camqp_config_t *conf) /* {{{ */ /* type = */ amqp_cstring_bytes (conf->exchange_type), /* passive = */ 0, /* durable = */ 0, -#if AMQP_VERSION >= 0x00060000 +#if defined(AMQP_VERSION) && AMQP_VERSION >= 0x00060000 /* auto delete = */ 0, /* internal = */ 0, #endif @@ -716,7 +716,7 @@ static void *camqp_subscribe_thread (void *user_data) /* {{{ */ continue; } - status = camqp_read_header (conf); + camqp_read_header (conf); amqp_maybe_release_buffers (conf->connection); } /* while (subscriber_threads_running) */