diff Python/fileutils.c @ 65346:cc1d8a2db348

Mark _Py_char2wchar() input argument as constant
author Victor Stinner <victor.stinner@haypocalc.com>
date Fri, 15 Oct 2010 11:15:54 +0000
parents a27fc0ff3678
children e1dc9861b43f
line wrap: on
line diff
--- a/Python/fileutils.c	Fri Oct 15 09:02:14 2010 +0000
+++ b/Python/fileutils.c	Fri Oct 15 11:15:54 2010 +0000
@@ -17,7 +17,7 @@
    PyMem_Free() to free the memory), or NULL on error (conversion error or
    memory error). */
 wchar_t*
-_Py_char2wchar(char* arg)
+_Py_char2wchar(const char* arg)
 {
     wchar_t *res;
 #ifdef HAVE_BROKEN_MBSTOWCS