diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-12-20 19:06:57 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-12-20 19:06:57 +0000 |
commit | 9e4f80a4f60a8f668f0b435dc4ad24237780b3ba (patch) | |
tree | 6fd20b3d58f90acaa78759c32eb4babd891fcec8 | |
parent | 06b577f7dc7f5137c491f019e19de6de3fffa755 (diff) |
Whitespace fixes.
........
Merged revisions 404419 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@404420 65c4cc65-6c06-0410-ace0-fbb531ad65f3
-rw-r--r-- | main/sounds_index.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/main/sounds_index.c b/main/sounds_index.c index 2fcd23908..41430fa45 100644 --- a/main/sounds_index.c +++ b/main/sounds_index.c @@ -226,9 +226,9 @@ static char *handle_cli_sound_show(struct ast_cli_entry *e, int cmd, struct ast_ return NULL; case CLI_GENERATE: { - int length = strlen(a->word); - int which = 0; - struct ao2_iterator it_sounds; + int length = strlen(a->word); + int which = 0; + struct ao2_iterator it_sounds; char *match = NULL; char *filename; RAII_VAR(struct ao2_container *, sound_files, ast_media_get_media(sounds_index), ao2_cleanup); @@ -237,16 +237,16 @@ static char *handle_cli_sound_show(struct ast_cli_entry *e, int cmd, struct ast_ } it_sounds = ao2_iterator_init(sound_files, 0); - while ((filename = ao2_iterator_next(&it_sounds))) { - if (!strncasecmp(a->word, filename, length) && ++which > a->n) { - match = ast_strdup(filename); - ao2_ref(filename, -1); - break; - } - ao2_ref(filename, -1); - } - ao2_iterator_destroy(&it_sounds); - return match; + while ((filename = ao2_iterator_next(&it_sounds))) { + if (!strncasecmp(a->word, filename, length) && ++which > a->n) { + match = ast_strdup(filename); + ao2_ref(filename, -1); + break; + } + ao2_ref(filename, -1); + } + ao2_iterator_destroy(&it_sounds); + return match; } } |