[svn:parrot] r35644 - trunk/src/io
[email protected] Fri, 16 Jan 2009 11:30:34 -0800 (PST)
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);