From 941afa771b43ce5abb825ed487354750cfc71e51 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Sat, 4 Aug 2018 23:55:00 +0200 Subject: [PATCH] blst: small formatting bits --- src/modules/blst/blst.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/modules/blst/blst.c b/src/modules/blst/blst.c index 5fd654feba1..a3bbdb6b619 100644 --- a/src/modules/blst/blst.c +++ b/src/modules/blst/blst.c @@ -105,7 +105,7 @@ static int ki_blst_add(sip_msg_t* msg, int t) { #ifdef USE_DST_BLACKLIST struct dest_info src; - + if (likely(cfg_get(core, core_cfg, use_dst_blacklist))){ if (t==0) t=cfg_get(core, core_cfg, blst_timeout); @@ -165,7 +165,7 @@ static int ki_blst_add_retry_after(sip_msg_t* msg, int t_min, int t_max) int t; struct dest_info src; struct hdr_field* hf; - + if (likely(cfg_get(core, core_cfg, use_dst_blacklist))){ init_dest_info(&src); src.send_sock=0; @@ -173,7 +173,7 @@ static int ki_blst_add_retry_after(sip_msg_t* msg, int t_min, int t_max) src.id=msg->rcv.proto_reserved1; src.proto=msg->rcv.proto; t=-1; - if ((parse_headers(msg, HDR_RETRY_AFTER_F, 0)==0) && + if ((parse_headers(msg, HDR_RETRY_AFTER_F, 0)==0) && (msg->parsed_flag & HDR_RETRY_AFTER_F)){ for (hf=msg->headers; hf; hf=hf->next) if (hf->type==HDR_RETRY_AFTER_T){ @@ -184,7 +184,7 @@ static int ki_blst_add_retry_after(sip_msg_t* msg, int t_min, int t_max) } if (t<0) return -1; - + t=MAX_unsigned(t, t_min); t=MIN_unsigned(t, t_max); if (likely(t)) @@ -229,9 +229,9 @@ static int ki_blst_del(sip_msg_t* msg) { #ifdef USE_DST_BLACKLIST struct dest_info src; - + if (likely(cfg_get(core, core_cfg, use_dst_blacklist))){ - + init_dest_info(&src); src.send_sock=0; src.to=msg->rcv.src_su; @@ -266,7 +266,7 @@ static int ki_blst_is_blacklisted(sip_msg_t* msg) { #ifdef USE_DST_BLACKLIST struct dest_info src; - + if (likely(cfg_get(core, core_cfg, use_dst_blacklist))){ init_dest_info(&src); src.send_sock=0; @@ -542,4 +542,4 @@ int mod_register(char *path, int *dlflags, void *p1, void *p2) { sr_kemi_modules_add(sr_kemi_blst_exports); return 0; -} \ No newline at end of file +}