diff options
author | Kinsey Moore <kmoore@digium.com> | 2012-06-11 15:23:30 +0000 |
---|---|---|
committer | Kinsey Moore <kmoore@digium.com> | 2012-06-11 15:23:30 +0000 |
commit | c6142cf2cc7312122abcf74d6ab1daf0ad1d72bf (patch) | |
tree | 3d00ae5c1e40b99710f72f10a1f65d62ce83b01d /main | |
parent | 566ea22e1878ad6a576431d1035a5fe9b4a936d1 (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')
-rw-r--r-- | main/loader.c | 4 | ||||
-rw-r--r-- | main/say.c | 2 |
2 files changed, 3 insertions, 3 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); diff --git a/main/say.c b/main/say.c index 9d6d4b16c..f8379c526 100644 --- a/main/say.c +++ b/main/say.c @@ -1915,7 +1915,7 @@ static void powiedz(struct ast_channel *chan, const char *language, int audiofd, char *b = buf; b = pl_append(b, odm->dziesiatki[m100 / 10]); b = pl_append(b, odm->separator_dziesiatek); - b = pl_append(b, odm->cyfry2[m100 % 10]); + pl_append(b, odm->cyfry2[m100 % 10]); pl_odtworz_plik(chan, language, audiofd, ctrlfd, ints, buf); } } |