summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSteve Hay <SteveHay@planit.com>2007-08-15 10:06:20 +0000
committerSteve Hay <SteveHay@planit.com>2007-08-15 10:06:20 +0000
commita7f43cfc756647d7175b53bd957bd501a9f6ad6d (patch)
treeff9ce2149b05d4d6f2a45593cf45db261210a720 /lib
parent915d8d752a158c0f94585cfaa3cbb0711006156f (diff)
downloadperl-a7f43cfc756647d7175b53bd957bd501a9f6ad6d.tar.gz
Fix syntax error introduced by #31715
Fix "Useless use of a constant in void context" warning introduced by #31709 which was causing failures in ext/Compress/Zlib/t/05examples.t and ext/IO_Compress_Zlib/t/010examples.t on Win32. p4raw-id: //depot/perl@31720
Diffstat (limited to 'lib')
-rw-r--r--lib/File/Spec/Cygwin.pm4
-rw-r--r--lib/File/Spec/Win32.pm4
2 files changed, 5 insertions, 3 deletions
diff --git a/lib/File/Spec/Cygwin.pm b/lib/File/Spec/Cygwin.pm
index 30d6e17a5e..5d89fe5305 100644
--- a/lib/File/Spec/Cygwin.pm
+++ b/lib/File/Spec/Cygwin.pm
@@ -109,7 +109,9 @@ Default: 1
=cut
sub case_tolerant () {
- if ($^O ne 'cygwin') return 1;
+ if ($^O ne 'cygwin') {
+ return 1;
+ }
my $drive = shift || "/cygdrive/c";
my $mntopts = Cygwin::mount_flags($drive);
if ($mntopts and ($mntopts =~ /,managed/)) {
diff --git a/lib/File/Spec/Win32.pm b/lib/File/Spec/Win32.pm
index eba2171fb2..cd41a3b392 100644
--- a/lib/File/Spec/Win32.pm
+++ b/lib/File/Spec/Win32.pm
@@ -5,7 +5,7 @@ use strict;
use vars qw(@ISA $VERSION);
require File::Spec::Unix;
-$VERSION = '1.6';
+$VERSION = '1.6_01';
@ISA = qw(File::Spec::Unix);
@@ -89,7 +89,7 @@ Default: 1
sub case_tolerant () {
eval { require Win32API::File; } or return 1;
- my $drive = shift or "C:";
+ my $drive = shift || "C:";
my $osFsType = "\0"x256;
my $osVolName = "\0"x256;
my $ouFsFlags = 0;