From: Jack Jansen Date: Wed, 20 Jun 2001 21:21:07 +0000 (+0000) Subject: Added a const to shut up a compiler warning. X-Git-Tag: v2.2a3~1495 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b9289ff1a89158e7e54781ae540c721473dc5c5;p=thirdparty%2FPython%2Fcpython.git Added a const to shut up a compiler warning. --- diff --git a/Mac/Modules/waste/wastemodule.c b/Mac/Modules/waste/wastemodule.c index 0b2526aae74a..d09641f51441 100644 --- a/Mac/Modules/waste/wastemodule.c +++ b/Mac/Modules/waste/wastemodule.c @@ -154,7 +154,7 @@ my_dispose_handler(WEObjectReference objref) } static pascal OSErr -my_draw_handler(Rect *destRect, WEObjectReference objref) +my_draw_handler(const Rect *destRect, WEObjectReference objref) { PyObject *args=NULL, *rv=NULL; OSErr err; diff --git a/Mac/Modules/waste/wastesupport.py b/Mac/Modules/waste/wastesupport.py index 7b2ff139c636..246c6c149391 100644 --- a/Mac/Modules/waste/wastesupport.py +++ b/Mac/Modules/waste/wastesupport.py @@ -202,7 +202,7 @@ my_dispose_handler(WEObjectReference objref) } static pascal OSErr -my_draw_handler(Rect *destRect, WEObjectReference objref) +my_draw_handler(const Rect *destRect, WEObjectReference objref) { PyObject *args=NULL, *rv=NULL; OSErr err;