[svn-commits] tzafrir: tools/trunk r9986 - /tools/trunk/xpp/perl_modules/Dahdi/Xpp.pm

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Jun 23 12:33:46 CDT 2011


Author: tzafrir
Date: Thu Jun 23 12:33:43 2011
New Revision: 9986

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9986
Log:
fix registration order for more than 9 Astribanks

The sorting function for SORT_XPPORDER accidentally sorted the Astribank
priorities from the xpp_order file (/etc/dahdi/xpp_order) lexicographically
instead of numerically, that is: 10 before 2.

Signed-off-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    tools/trunk/xpp/perl_modules/Dahdi/Xpp.pm

Modified: tools/trunk/xpp/perl_modules/Dahdi/Xpp.pm
URL: http://svnview.digium.com/svn/dahdi/tools/trunk/xpp/perl_modules/Dahdi/Xpp.pm?view=diff&rev=9986&r1=9985&r2=9986
==============================================================================
--- tools/trunk/xpp/perl_modules/Dahdi/Xpp.pm (original)
+++ tools/trunk/xpp/perl_modules/Dahdi/Xpp.pm Thu Jun 23 12:33:43 2011
@@ -97,7 +97,7 @@
 }
 
 sub by_xpporder {
-	my $cmp = $a->xpporder cmp $b->xpporder;
+	my $cmp = $a->xpporder <=> $b->xpporder;
 	return $cmp if $cmp != 0;
 	return $a->connector cmp $b->connector;
 }




More information about the svn-commits mailing list