[asterisk-commits] seanbright: trunk r329671 - in /trunk: ./ main/loader.c

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


Author: seanbright
Date: Wed Jul 27 10:26:31 2011
New Revision: 329671

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=329671
Log:
Merged revisions 329670 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/10

........
  r329670 | seanbright | 2011-07-27 11:25:53 -0400 (Wed, 27 Jul 2011) | 2 lines
  
  Sort the module list so that 'module show' is alphabetical.
........

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

Propchange: trunk/
------------------------------------------------------------------------------
--- branch-10-merged (original)
+++ branch-10-merged Wed Jul 27 10:26:31 2011
@@ -1,1 +1,1 @@
-/branches/10:1-328075,328120,328162,328207,328247,328317,328329,328428-328429,328448,328451,328541,328609,328611,328664,328717,328771,328824,328879,328936,328992,329055,329145,329200,329204,329257,329331,329334,329472,329528,329538,329614
+/branches/10:1-328075,328120,328162,328207,328247,328317,328329,328428-328429,328448,328451,328541,328609,328611,328664,328717,328771,328824,328879,328936,328992,329055,329145,329200,329204,329257,329331,329334,329472,329528,329538,329614,329670

Modified: trunk/main/loader.c
URL: http://svnview.digium.com/svn/asterisk/trunk/main/loader.c?view=diff&rev=329671&r1=329670&r2=329671
==============================================================================
--- trunk/main/loader.c (original)
+++ trunk/main/loader.c Wed Jul 27 10:26:31 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