This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Presumably this lack of const is what the VMS compiler is complaining
authorNicholas Clark <nick@ccl4.org>
Sat, 15 Oct 2005 12:05:53 +0000 (12:05 +0000)
committerNicholas Clark <nick@ccl4.org>
Sat, 15 Oct 2005 12:05:53 +0000 (12:05 +0000)
about in the "assignment", not that these three function calls are
actually assignments.

p4raw-id: //depot/maint-5.8/perl@25762

pp_sys.c

index 49a9318..e7460f1 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3497,7 +3497,7 @@ PP(pp_chdir)
     }
 
     TAINT_PROPER("chdir");
-    PUSHi( PerlDir_chdir(tmps) >= 0 );
+    PUSHi( PerlDir_chdir((char *)tmps) >= 0 );
 #ifdef VMS
     /* Clear the DEFAULT element of ENV so we'll get the new value
      * in the future. */
@@ -3768,7 +3768,7 @@ PP(pp_mkdir)
 
     TAINT_PROPER("mkdir");
 #ifdef HAS_MKDIR
-    SETi( PerlDir_mkdir(tmps, mode) >= 0 );
+    SETi( PerlDir_mkdir((char *)tmps, mode) >= 0 );
 #else
     SETi( dooneliner("mkdir", tmps) );
     oldumask = PerlLIO_umask(0);
@@ -3790,7 +3790,7 @@ PP(pp_rmdir)
     TRIMSLASHES(tmps,len,copy);
     TAINT_PROPER("rmdir");
 #ifdef HAS_RMDIR
-    SETi( PerlDir_rmdir(tmps) >= 0 );
+    SETi( PerlDir_rmdir((char *)tmps) >= 0 );
 #else
     SETi( dooneliner("rmdir", tmps) );
 #endif