[SR-Dev] git:master: remove wrong EXTRA_DEBUG definition on module loader

Henning Westerholt henning.westerholt at 1und1.de
Fri Apr 3 14:15:31 CEST 2009


Module: sip-router
Branch: master
Commit: 43e96232189748a216c65ac8e13c3ced695830a1
URL:    http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=43e96232189748a216c65ac8e13c3ced695830a1

Author: Henning Westerholt <henning.westerholt at 1und1.de>
Committer: Henning Westerholt <henning.westerholt at 1und1.de>
Date:   Fri Apr  3 14:14:58 2009 +0200

remove wrong EXTRA_DEBUG definition on module loader

---

 sr_module.c |   10 ----------
 1 files changed, 0 insertions(+), 10 deletions(-)

diff --git a/sr_module.c b/sr_module.c
index e35ee36..24c1445 100644
--- a/sr_module.c
+++ b/sr_module.c
@@ -274,7 +274,6 @@ int load_module(char* path)
 		strcat(path, modname);
 		strcat(path, ".so");
 
-#ifdef EXTRA_DEBUG
 		if (stat(path, &stat_buf) == -1) {
 			DBG("load_module: module file not found <%s>\n", path);
 			pkg_free(path);
@@ -302,15 +301,6 @@ int load_module(char* path)
 				goto error;
 			}
 		}
-#else /* !EXTRA_DEBUG */
-		if (stat(path, &stat_buf) == -1) {
-			DBG("load_module: module file not found <%s>\n", path);
-			pkg_free(path);
-			LOG(L_ERR, "ERROR: load_module: could not find module <%s>\n",
-				modname);
-			goto error;
-		}
-#endif /* !EXTRA_DEBUG */
 	}
 	retries=2;
 	dlflags=RTLD_NOW;




More information about the sr-dev mailing list