summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5acbb98)
raw | patch | inline | side by side (parent: 5acbb98)
author | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 11 Mar 2015 21:11:15 +0000 (22:11 +0100) | ||
committer | Marc Fournier <marc.fournier@camptocamp.com> | |
Wed, 11 Mar 2015 21:11:15 +0000 (22:11 +0100) |
src/amqp.c | patch | blob | history |
diff --git a/src/amqp.c b/src/amqp.c
index dd5a65267a1212622b2b66097a01e650c6fe8a99..187582c46885e080dc18937ecb7aca7a5d83d19d 100644 (file)
--- a/src/amqp.c
+++ b/src/amqp.c
static int camqp_connect (camqp_config_t *conf) /* {{{ */
{
- static time_t lastConnectTime = 0;
+ static time_t last_connect_time = 0;
amqp_rpc_reply_t reply;
int status;
return (0);
time_t now = time(NULL);
- if (now < (lastConnectTime + conf->connection_retry_delay))
+ if (now < (last_connect_time + conf->connection_retry_delay))
{
- DEBUG("amqp plugin: skipping connection retry, ConnectionRetryDelay: %d"
- , conf->connection_retry_delay);
+ DEBUG("amqp plugin: skipping connection retry, "
+ "ConnectionRetryDelay: %d", conf->connection_retry_delay);
return(1);
}
else
{
DEBUG ("amqp plugin: retrying connection");
- lastConnectTime = now;
+ last_connect_time = now;
}
conf->connection = amqp_new_connection ();