[Pkg-voip-commits] [dahdi-tools] 29/285: fix registration order for more than 9 Astribanks

tzafrir at debian.org tzafrir at debian.org
Thu Jul 7 19:18:22 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository dahdi-tools.

commit 9ae57618d3fac4afdd3516f3ab1362f55a5559f3
Author: Tzafrir Cohen <tzafrir.cohen at xorcom.com>
Date:   Thu Jun 23 17:33:43 2011 +0000

    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>
    
    git-svn-id: http://svn.astersk.org/svn/dahdi/tools/trunk@9986 17933a7a-c749-41c5-a318-cba88f637d49
---
 xpp/perl_modules/Dahdi/Xpp.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/xpp/perl_modules/Dahdi/Xpp.pm b/xpp/perl_modules/Dahdi/Xpp.pm
index d4b315b..8280b5e 100644
--- a/xpp/perl_modules/Dahdi/Xpp.pm
+++ b/xpp/perl_modules/Dahdi/Xpp.pm
@@ -97,7 +97,7 @@ sub by_type {
 }
 
 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;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/dahdi-tools.git



More information about the Pkg-voip-commits mailing list