Module: kamailio
Branch: master
Commit: aa4d015a58bb24ba5bda6e6133b0e9f314e2318e
URL:
https://github.com/kamailio/kamailio/commit/aa4d015a58bb24ba5bda6e6133b0e9f…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-03-14T17:20:14Z
dispatcher: small formatting adaption related to 6aee3bd7c
---
Modified: src/modules/dispatcher/dispatch.c
Modified: src/modules/dispatcher/dispatcher.c
---
Diff:
https://github.com/kamailio/kamailio/commit/aa4d015a58bb24ba5bda6e6133b0e9f…
Patch:
https://github.com/kamailio/kamailio/commit/aa4d015a58bb24ba5bda6e6133b0e9f…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index 50ad98dc0f..d79fb7a6d3 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -4039,8 +4039,7 @@ ds_set_t *ds_avl_insert(ds_set_t **root, int id, int *setn)
}
if(!node) {
node = shm_malloc(sizeof(ds_set_t));
- if(!(node))
- {
+ if(!(node)) {
SHM_MEM_ERROR;
return NULL;
}
diff --git a/src/modules/dispatcher/dispatcher.c b/src/modules/dispatcher/dispatcher.c
index 8ccc86fedc..5cb3d7aba2 100644
--- a/src/modules/dispatcher/dispatcher.c
+++ b/src/modules/dispatcher/dispatcher.c
@@ -360,15 +360,13 @@ static int mod_init(void)
/* Initialize the counter */
ds_ping_reply_codes = (int **)shm_malloc(sizeof(unsigned int *));
- if(!(ds_ping_reply_codes))
- {
+ if(!(ds_ping_reply_codes)) {
SHM_MEM_ERROR;
return -1;
}
*ds_ping_reply_codes = 0;
ds_ping_reply_codes_cnt = (int *)shm_malloc(sizeof(int));
- if(!(ds_ping_reply_codes_cnt))
- {
+ if(!(ds_ping_reply_codes_cnt)) {
shm_free(ds_ping_reply_codes);
SHM_MEM_ERROR;
return -1;