From: <mga...@us...> - 2010-08-03 15:08:21
|
Revision: 1914 http://scst.svn.sourceforge.net/scst/?rev=1914&view=rev Author: mgandalf Date: 2010-08-03 15:08:15 +0000 (Tue, 03 Aug 2010) Log Message: ----------- - Fix list_target. Modified Paths: -------------- trunk/scstadmin/scstadmin.sysfs/scstadmin Modified: trunk/scstadmin/scstadmin.sysfs/scstadmin =================================================================== --- trunk/scstadmin/scstadmin.sysfs/scstadmin 2010-08-03 15:03:37 UTC (rev 1913) +++ trunk/scstadmin/scstadmin.sysfs/scstadmin 2010-08-03 15:08:15 UTC (rev 1914) @@ -1895,7 +1895,7 @@ sub listDrivers { my $driver = shift; - return listTargets(undef, $driver) if ($driver); + return listTargets($driver, undef) if ($driver); my $drivers = $SCST->drivers(); @@ -1917,8 +1917,8 @@ } sub listTargets { + my $driver = shift; my $target = shift; - my $driver = shift; my %toprint; return listGroups(undef, $driver, $target) if ($target && $driver); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |