Module: kamailio
Branch: master
Commit: a078f14050b6d31bfbcd3562306923c0c4ad73e3
URL:
https://github.com/kamailio/kamailio/commit/a078f14050b6d31bfbcd3562306923c…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-09-13T22:07:26+02:00
ldap: remove unused variable in child_init
fixes #3974
ldap_mod.c: In function ������child_init������:
ldap_mod.c:156:13: warning: unused variable ������ret������ [-Wunused-variable]
156 | int ret = 0;
---
Modified: src/modules/ldap/ldap_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/a078f14050b6d31bfbcd3562306923c…
Patch:
https://github.com/kamailio/kamailio/commit/a078f14050b6d31bfbcd3562306923c…
---
diff --git a/src/modules/ldap/ldap_mod.c b/src/modules/ldap/ldap_mod.c
index de0e25b1545..27d44b9d88b 100644
--- a/src/modules/ldap/ldap_mod.c
+++ b/src/modules/ldap/ldap_mod.c
@@ -153,7 +153,6 @@ static int child_init(int rank)
{
int i = 0, ld_count = 0;
char *ld_name;
- int ret = 0;
/* don't do anything for non-worker processes */
if(rank == PROC_INIT || rank == PROC_MAIN || rank == PROC_TCP_MAIN)