[asterisk-commits] file: trunk r42910 - /trunk/main/loader.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Sep 13 15:45:45 MST 2006


Author: file
Date: Wed Sep 13 17:45:44 2006
New Revision: 42910

URL: http://svn.digium.com/view/asterisk?rev=42910&view=rev
Log:
Tweak changes that went in on revision 42891

Modified:
    trunk/main/loader.c

Modified: trunk/main/loader.c
URL: http://svn.digium.com/view/asterisk/trunk/main/loader.c?rev=42910&r1=42909&r2=42910&view=diff
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Wed Sep 13 17:45:44 2006
@@ -200,13 +200,13 @@
 void __ast_module_user_remove(struct ast_module *mod, struct ast_module_user *u)
 {
 
-	if (u <= 0) {	
-		ast_log(LOG_ERROR,"ast_module_user invalid can not remove \n");		
+	if (!u) {
+		ast_log(LOG_ERROR, "ast_module_user is invalid can not remove\n");		
 		return;
 	}
 
-	if (mod <= 0) {
-		ast_log(LOG_ERROR,"ast_module invalid can not remove \n");
+	if (!mod) {
+		ast_log(LOG_ERROR, "ast_module is invalid can not remove\n");
 		return;
 	}
 	



More information about the asterisk-commits mailing list