Whitespace fixes.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@404419 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Richard Mudgett
2013-12-20 19:06:12 +00:00
parent a39d63f4fa
commit 818beab605

View File

@@ -226,9 +226,9 @@ static char *handle_cli_sound_show(struct ast_cli_entry *e, int cmd, struct ast_
return NULL; return NULL;
case CLI_GENERATE: case CLI_GENERATE:
{ {
int length = strlen(a->word); int length = strlen(a->word);
int which = 0; int which = 0;
struct ao2_iterator it_sounds; struct ao2_iterator it_sounds;
char *match = NULL; char *match = NULL;
char *filename; char *filename;
RAII_VAR(struct ao2_container *, sound_files, ast_media_get_media(sounds_index), ao2_cleanup); 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); it_sounds = ao2_iterator_init(sound_files, 0);
while ((filename = ao2_iterator_next(&it_sounds))) { while ((filename = ao2_iterator_next(&it_sounds))) {
if (!strncasecmp(a->word, filename, length) && ++which > a->n) { if (!strncasecmp(a->word, filename, length) && ++which > a->n) {
match = ast_strdup(filename); match = ast_strdup(filename);
ao2_ref(filename, -1); ao2_ref(filename, -1);
break; break;
} }
ao2_ref(filename, -1); ao2_ref(filename, -1);
} }
ao2_iterator_destroy(&it_sounds); ao2_iterator_destroy(&it_sounds);
return match; return match;
} }
} }