[Tools] winetest: Add prototypes to the functions.

Francois Gouget fgouget at free.fr
Mon Mar 10 07:56:26 CDT 2008


---

This lets perl make sure we pass the right number and type of 
parameters.

 winetest/dissect |    2 +-
 winetest/gather  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/winetest/dissect b/winetest/dissect
index 5f48f9e..b5ea968 100755
--- a/winetest/dissect
+++ b/winetest/dissect
@@ -37,7 +37,7 @@ use Errno qw/ENOTEMPTY/;
 
 my ($report, $tmpdir);
 
-sub mydie {
+sub mydie($) {
     my $errdir = tempdir ("errXXXXX", DIR => $queuedir);
     if (!rename $tmpdir, $errdir) {
         print "can't rename $tmpdir to $errdir: $!\n";
diff --git a/winetest/gather b/winetest/gather
index e93e34c..80aec78 100755
--- a/winetest/gather
+++ b/winetest/gather
@@ -268,7 +268,7 @@ $header
 EOF
 
 # Output a single cell of a test
-sub singletest {
+sub singletest($$$) {
     my ($test, $testname, $groupname) = @_;
     my $file = "$test->{dir}/$testname.txt";
     my ($count, $todo, $error, $skipped) = @{$test->{results}->{$testname}};
-- 
1.5.4.1




More information about the wine-patches mailing list