Author: thomas.heller
Date: Wed Jul 11 14:21:58 2007
New Revision: 56259

Modified:
   python/branches/py3k-struni/Modules/_ctypes/cfield.c
   python/branches/py3k-struni/Modules/_ctypes/ctypes.h
Log:
Avoid compiler warnings about 'const char*'.

Modified: python/branches/py3k-struni/Modules/_ctypes/cfield.c
==============================================================================
--- python/branches/py3k-struni/Modules/_ctypes/cfield.c        (original)
+++ python/branches/py3k-struni/Modules/_ctypes/cfield.c        Wed Jul 11 
14:21:58 2007
@@ -1637,7 +1637,7 @@
 */
 
 struct fielddesc *
-getentry(char *fmt)
+getentry(const char *fmt)
 {
        static int initialized = 0;
        struct fielddesc *table = formattable;

Modified: python/branches/py3k-struni/Modules/_ctypes/ctypes.h
==============================================================================
--- python/branches/py3k-struni/Modules/_ctypes/ctypes.h        (original)
+++ python/branches/py3k-struni/Modules/_ctypes/ctypes.h        Wed Jul 11 
14:21:58 2007
@@ -128,7 +128,7 @@
 #define SimpleTypeObject_Check(v)      PyObject_TypeCheck(v, &SimpleType_Type)
 
 extern PyTypeObject CField_Type;
-extern struct fielddesc *getentry(char *fmt);
+extern struct fielddesc *getentry(const char *fmt);
 
 
 extern PyObject *
_______________________________________________
Python-3000-checkins mailing list
Python-3000-checkins@python.org
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to