[asterisk-commits] rmudgett: branch 12 r404419 - /branches/12/main/sounds_index.c

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


Author: rmudgett
Date: Fri Dec 20 13:06:12 2013
New Revision: 404419

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

Modified:
    branches/12/main/sounds_index.c

Modified: branches/12/main/sounds_index.c
URL: http://svnview.digium.com/svn/asterisk/branches/12/main/sounds_index.c?view=diff&rev=404419&r1=404418&r2=404419
==============================================================================
--- branches/12/main/sounds_index.c (original)
+++ branches/12/main/sounds_index.c Fri Dec 20 13:06:12 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