[asterisk-commits] seanbright: branch 10 r329670 - /branches/10/main/loader.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jul 27 10:25:57 CDT 2011


Author: seanbright
Date: Wed Jul 27 10:25:53 2011
New Revision: 329670

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=329670
Log:
Sort the module list so that 'module show' is alphabetical.

Modified:
    branches/10/main/loader.c

Modified: branches/10/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/branches/10/main/loader.c?view=diff&rev=329670&r1=329669&r2=329670
==============================================================================
--- branches/10/main/loader.c (original)
+++ branches/10/main/loader.c Wed Jul 27 10:25:53 2011
@@ -870,6 +870,12 @@
 		res = start_resource(mod);
 	}
 
+	/* Now make sure that the list is sorted */
+	AST_LIST_LOCK(&module_list);
+	AST_LIST_REMOVE(&module_list, mod, entry);
+	AST_LIST_INSERT_SORTALPHA(&module_list, mod, entry, resource);
+	AST_LIST_UNLOCK(&module_list);
+
 	return res;
 }
 




More information about the asterisk-commits mailing list