aboutsummaryrefslogtreecommitdiffstats
path: root/main/loader.c
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-21 03:06:41 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2006-08-21 03:06:41 +0000
commitdc1637751a70702ff43ac0c2493201fb28aefa0f (patch)
tree9efd5aa71c61d902401e111591dcf0bc454088ef /main/loader.c
parent307edd045d9c0a2b75240893d81453fdde963719 (diff)
don't declare these variables unless needed
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40751 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/loader.c')
-rw-r--r--main/loader.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/main/loader.c b/main/loader.c
index 709a943d7..25c6c3773 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -660,14 +660,16 @@ static struct load_order_entry *add_to_load_order(const char *resource, struct l
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;