[Python-checkins] r45293 - in python/trunk/Mac/Modules: carbonevt/_CarbonEvtmodule.c qd/_Qdmodule.c

neal.norwitz python-checkins at python.org
Wed Apr 12 06:56:36 CEST 2006


Author: neal.norwitz
Date: Wed Apr 12 06:56:35 2006
New Revision: 45293

Modified:
   python/trunk/Mac/Modules/carbonevt/_CarbonEvtmodule.c
   python/trunk/Mac/Modules/qd/_Qdmodule.c
Log:
Get rid of some warnings on Mac

Modified: python/trunk/Mac/Modules/carbonevt/_CarbonEvtmodule.c
==============================================================================
--- python/trunk/Mac/Modules/carbonevt/_CarbonEvtmodule.c	(original)
+++ python/trunk/Mac/Modules/carbonevt/_CarbonEvtmodule.c	Wed Apr 12 06:56:35 2006
@@ -40,7 +40,7 @@
                         PyMac_GetOSType, &(out->eventClass),
                         &(out->eventKind)))
                 return 1;
-        return NULL;
+        return 0;
 }
 
 /********** end EventTypeSpec *******/
@@ -78,7 +78,7 @@
 {
         if (PyArg_ParseTuple(v, "ll", &out->signature, &out->id))
                 return 1;
-        return NULL;
+        return 0;
 }
 
 /********** end EventHotKeyID *******/

Modified: python/trunk/Mac/Modules/qd/_Qdmodule.c
==============================================================================
--- python/trunk/Mac/Modules/qd/_Qdmodule.c	(original)
+++ python/trunk/Mac/Modules/qd/_Qdmodule.c	Wed Apr 12 06:56:35 2006
@@ -5824,7 +5824,6 @@
 {
 	PyObject *_res = NULL;
 	char *textBuf__in__;
-	int textBuf__len__;
 	int textBuf__in_len__;
 	short firstByte;
 	short byteCount;
@@ -5885,7 +5884,6 @@
 	PyObject *_res = NULL;
 	short _rv;
 	char *textBuf__in__;
-	int textBuf__len__;
 	int textBuf__in_len__;
 	short firstByte;
 	short byteCount;
@@ -6471,7 +6469,6 @@
 {
 	PyObject *_res = NULL;
 	char *textBuf__in__;
-	int textBuf__len__;
 	int textBuf__in_len__;
 	short firstByte;
 	short byteCount;
@@ -6534,7 +6531,7 @@
 	        return NULL;
 	if ( PyString_Size(source) != sizeof(BitMap) && PyString_Size(source) != sizeof(PixMap) ) {
 	        PyErr_Format(PyExc_TypeError,
-	                "Argument size was %d, should be %d (sizeof BitMap) or %d (sizeof PixMap)",
+	                "Argument size was %ld, should be %lu (sizeof BitMap) or %lu (sizeof PixMap)",
 	                PyString_Size(source), sizeof(BitMap), sizeof(PixMap));
 	        return NULL;
 	}


More information about the Python-checkins mailing list