[Python-3000-checkins] r56259 - python/branches/py3k-struni/Modules/_ctypes/cfield.c python/branches/py3k-struni/Modules/_ctypes/ctypes.h

thomas.heller python-3000-checkins at python.org
Wed Jul 11 14:21:58 CEST 2007


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 *


More information about the Python-3000-checkins mailing list