[svn-commits] tzafrir: branch tools/2.4 r9987 - /tools/branches/2.4/xpp/perl_modules/Dahdi/

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


Author: tzafrir
Date: Thu Jun 23 12:39:07 2011
New Revision: 9987

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9987
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/branches/2.4/xpp/perl_modules/Dahdi/Xpp.pm

Modified: tools/branches/2.4/xpp/perl_modules/Dahdi/Xpp.pm
URL: http://svnview.digium.com/svn/dahdi/tools/branches/2.4/xpp/perl_modules/Dahdi/Xpp.pm?view=diff&rev=9987&r1=9986&r2=9987
==============================================================================
--- tools/branches/2.4/xpp/perl_modules/Dahdi/Xpp.pm (original)
+++ tools/branches/2.4/xpp/perl_modules/Dahdi/Xpp.pm Thu Jun 23 12:39:07 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