Module: kamailio
Branch: master
Commit: 2b9706aca33b8ca34d3d9c58b80527956c92dd7a
URL:
https://github.com/kamailio/kamailio/commit/2b9706aca33b8ca34d3d9c58b805279…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-07T21:45:43+01:00
kazoo: fixed misleading-indentation warning GH #3012
---
Modified: src/modules/kazoo/kz_amqp.c
---
Diff:
https://github.com/kamailio/kamailio/commit/2b9706aca33b8ca34d3d9c58b805279…
Patch:
https://github.com/kamailio/kamailio/commit/2b9706aca33b8ca34d3d9c58b805279…
---
diff --git a/src/modules/kazoo/kz_amqp.c b/src/modules/kazoo/kz_amqp.c
index 4d9e3dcd8a..15d5b259a1 100644
--- a/src/modules/kazoo/kz_amqp.c
+++ b/src/modules/kazoo/kz_amqp.c
@@ -798,9 +798,9 @@ void kz_amqp_connection_close(kz_amqp_conn_ptr rmq) {
}
void kz_amqp_channel_close(kz_amqp_conn_ptr rmq, amqp_channel_t channel) {
- LM_DBG("Close rmq channel\n");
- if (!rmq)
- return;
+ LM_DBG("Close rmq channel\n");
+ if (!rmq)
+ return;
LM_DBG("close channel: %d rmq(%p)->channel(%d)\n", getpid(), (void *)rmq,
channel);
kz_amqp_error("closing channel", amqp_channel_close(rmq->conn, channel,
AMQP_REPLY_SUCCESS));
@@ -1126,11 +1126,11 @@ int kz_amqp_pipe_send(str *str_exchange, str *str_routing_key, str
*str_payload,
if(cmd)
kz_amqp_free_pipe_cmd(cmd);
- if(json_obj)
- json_object_put(json_obj);
+ if(json_obj)
+ json_object_put(json_obj);
- if(s_local_routing_key)
- pkg_free(s_local_routing_key);
+ if(s_local_routing_key)
+ pkg_free(s_local_routing_key);
return ret;
}
@@ -2045,14 +2045,13 @@ int kz_amqp_subscribe_simple(struct sip_msg* msg, char* exchange,
char* exchange
binding->bind = bind;
bindings_count++;
- return 1;
+ return 1;
error:
- if(binding != NULL)
- shm_free(binding);
+ if(binding != NULL)
+ shm_free(binding);
return -1;
-
}