[asterisk-commits] kpfleming: trunk r40751 - /trunk/main/loader.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sun Aug 20 20:06:41 MST 2006


Author: kpfleming
Date: Sun Aug 20 22:06:41 2006
New Revision: 40751

URL: http://svn.digium.com/view/asterisk?rev=40751&view=rev
Log:
don't declare these variables unless needed

Modified:
    trunk/main/loader.c

Modified: trunk/main/loader.c
URL: http://svn.digium.com/view/asterisk/trunk/main/loader.c?rev=40751&r1=40750&r2=40751&view=diff
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Sun Aug 20 22:06:41 2006
@@ -660,14 +660,16 @@
 int load_modules(void)
 {
 	struct ast_config *cfg;
-	struct dirent *dirent;
-	DIR *dir;
 	struct ast_module *mod;
 	struct load_order_entry *order;
 	struct ast_variable *v;
 	unsigned int load_count;
 	struct load_order load_order;
 	int res = 0;
+#if LOADABLE_MODULES
+	struct dirent *dirent;
+	DIR *dir;
+#endif
 
 	/* all embedded modules have registered themselves by now */
 	embedding = 0;



More information about the asterisk-commits mailing list