[asterisk-commits] rmudgett: trunk r404420 - in /trunk: ./ main/sounds_index.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Dec 20 13:06:58 CST 2013


Author: rmudgett
Date: Fri Dec 20 13:06:57 2013
New Revision: 404420

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=404420
Log:
Whitespace fixes.
........

Merged revisions 404419 from http://svn.asterisk.org/svn/asterisk/branches/12

Modified:
    trunk/   (props changed)
    trunk/main/sounds_index.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-12-merged' - no diff available.

Modified: trunk/main/sounds_index.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/sounds_index.c?view=diff&rev=404420&r1=404419&r2=404420
==============================================================================
--- trunk/main/sounds_index.c (original)
+++ trunk/main/sounds_index.c Fri Dec 20 13:06:57 2013
@@ -226,9 +226,9 @@
 		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 @@
 		}
 
 		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;
 	}
 	}
 




More information about the asterisk-commits mailing list