summaryrefslogtreecommitdiff
path: root/main/loader.c
diff options
context:
space:
mode:
authorKinsey Moore <kmoore@digium.com>2012-06-11 15:23:30 +0000
committerKinsey Moore <kmoore@digium.com>2012-06-11 15:23:30 +0000
commitc6142cf2cc7312122abcf74d6ab1daf0ad1d72bf (patch)
tree3d00ae5c1e40b99710f72f10a1f65d62ce83b01d /main/loader.c
parent566ea22e1878ad6a576431d1035a5fe9b4a936d1 (diff)
Fix coverity UNUSED_VALUE findings in core support level files
Most of these were just saving returned values without using them and in some cases the variable being saved to could be removed as well. (issue ASTERISK-19672) ........ Merged revisions 368738 from http://svn.asterisk.org/svn/asterisk/branches/1.8 ........ Merged revisions 368739 from http://svn.asterisk.org/svn/asterisk/branches/10 git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@368751 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/loader.c')
-rw-r--r--main/loader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/loader.c b/main/loader.c
index eacdff774..1415fa99f 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -1075,13 +1075,13 @@ int load_modules(unsigned int preload_only)
if (mod->flags.running)
continue;
- order = add_to_load_order(mod->resource, &load_order, 0);
+ add_to_load_order(mod->resource, &load_order, 0);
}
#ifdef LOADABLE_MODULES
/* if we are allowed to load dynamic modules, scan the directory for
for all available modules and add them as well */
- if ((dir = opendir(ast_config_AST_MODULE_DIR))) {
+ if ((dir = opendir(ast_config_AST_MODULE_DIR))) {
while ((dirent = readdir(dir))) {
int ld = strlen(dirent->d_name);