[svn:parrot] r35644 - trunk/src/io

[email protected]
Newsgroups perl.cvs.parrot
Message-ID <[email protected]>
Author: fperrad
Date: Fri Jan 16 11:30:33 2009
New Revision: 35644

Modified:
   trunk/src/io/win32.c

Log:
[win32] warning gcc 3.4.5
src\io\win32.c:230: warning: passing arg 1 of `string_cstring_free' discards qualifiers from pointer target type

Modified: trunk/src/io/win32.c
==============================================================================
--- trunk/src/io/win32.c	(original)
+++ trunk/src/io/win32.c	Fri Jan 16 11:30:33 2009
@@ -224,7 +224,7 @@
     flags |= PIO_F_FILE;
 
     { /* enclosing scope for temporary C string */
-        const char *spath = string_to_cstring(interp, path);
+        char *spath = string_to_cstring(interp, path);
         fd = CreateFile(spath, fAcc, fShare, NULL, fCreat,
                     FILE_ATTRIBUTE_NORMAL, NULL);
         string_cstring_free(spath);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.