[asterisk-commits] dlee: branch dlee/ASTERISK-22296 r397867 - /team/dlee/ASTERISK-22296/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Aug 28 14:15:36 CDT 2013


Author: dlee
Date: Wed Aug 28 14:15:34 2013
New Revision: 397867

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=397867
Log:
fixes

Modified:
    team/dlee/ASTERISK-22296/main/loader.c

Modified: team/dlee/ASTERISK-22296/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/team/dlee/ASTERISK-22296/main/loader.c?view=diff&rev=397867&r1=397866&r2=397867
==============================================================================
--- team/dlee/ASTERISK-22296/main/loader.c (original)
+++ team/dlee/ASTERISK-22296/main/loader.c Wed Aug 28 14:15:34 2013
@@ -413,7 +413,7 @@
 static void logged_dlclose(const char *name, void *lib)
 {
 	if (dlclose(lib) != 0) {
-		ast_log(LOG_ERROR, "Failed to unload %s: %s\n",
+		ast_log(LOG_WARNING, "Failed to unload %s: %s\n",
 			name, dlerror());
 	}
 }
@@ -529,7 +529,7 @@
 static int is_module_loaded(const char *resource_name)
 {
 	char fn[PATH_MAX] = "";
-	int missing_so;
+	int missing_so = 0;
 	void *lib;
 
 	if (strcasecmp(resource_name + strlen(resource_name) - 3, ".so")) {
@@ -657,7 +657,7 @@
 	if (!error) {
 		unload_dynamic_module(mod);
 		if (is_module_loaded(resource_name)) {
-			ast_log(LOG_ERROR, "Module '%s' could not be completely unloaded\n", resource_name);
+			ast_log(LOG_WARNING, "Module '%s' could not be completely unloaded\n", resource_name);
 		}
 		ast_test_suite_event_notify("MODULE_UNLOAD", "Message: %s", resource_name);
 	}




More information about the asterisk-commits mailing list